Skip to content

Commit 2e88582

Browse files
kksandr7pjcdawkins
authored andcommitted
Fix deprecations
1 parent d8f99dc commit 2e88582

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Model/ApiResourceBase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function setBaseUrl($baseUrl)
7171
/**
7272
* @inheritdoc
7373
*/
74-
public function offsetExists($offset)
74+
public function offsetExists(mixed $offset): bool
7575
{
7676
return $this->hasProperty($offset);
7777
}
@@ -102,7 +102,7 @@ public function __isset($name) {
102102
/**
103103
* @inheritdoc
104104
*/
105-
public function offsetGet($offset)
105+
public function offsetGet(mixed $offset): mixed
106106
{
107107
return $this->getProperty($offset, false);
108108
}
@@ -125,7 +125,7 @@ public function __set($name, $value)
125125
*
126126
* @throws \BadMethodCallException
127127
*/
128-
public function offsetSet($offset, $value)
128+
public function offsetSet(mixed $offset, $value): mixed
129129
{
130130
throw new \BadMethodCallException('Properties are read-only');
131131
}
@@ -135,7 +135,7 @@ public function offsetSet($offset, $value)
135135
*
136136
* @throws \BadMethodCallException
137137
*/
138-
public function offsetUnset($offset)
138+
public function offsetUnset(mixed $offset): void
139139
{
140140
throw new \BadMethodCallException('Properties are read-only');
141141
}

0 commit comments

Comments
 (0)