Skip to content

Commit 66ecca2

Browse files
committed
#1 Update Location class to reflect ArrayAccess interface changes
1 parent bb6870a commit 66ecca2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Location.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function __set($key, $value)
154154
*
155155
* @return bool
156156
*/
157-
public function offsetExists($offset)
157+
public function offsetExists(mixed $offset): bool
158158
{
159159
return isset($this->$offset);
160160
}
@@ -166,7 +166,7 @@ public function offsetExists($offset)
166166
*
167167
* @return mixed
168168
*/
169-
public function offsetGet($offset)
169+
public function offsetGet(mixed $offset): mixed
170170
{
171171
return $this->$offset;
172172
}
@@ -179,7 +179,7 @@ public function offsetGet($offset)
179179
*
180180
* @return void
181181
*/
182-
public function offsetSet($offset, $value)
182+
public function offsetSet(mixed $offset, mixed $value): void
183183
{
184184
$this->$offset = $value;
185185
}
@@ -191,7 +191,7 @@ public function offsetSet($offset, $value)
191191
*
192192
* @return void
193193
*/
194-
public function offsetUnset($offset)
194+
public function offsetUnset(mixed $offset): void
195195
{
196196
unset($this->$offset);
197197
}

0 commit comments

Comments
 (0)