Skip to content

Commit 783c623

Browse files
committed
Added ArrayAccess type hints
1 parent e330e8f commit 783c623

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/Tmdb/Model/Common/GenericCollection.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,22 +288,22 @@ public function sort(Closure $closure)
288288
return $this;
289289
}
290290

291-
public function offsetExists($offset)
291+
public function offsetExists(mixed $offset): bool
292292
{
293293
return isset($this->data[$offset]);
294294
}
295295

296-
public function offsetGet($offset)
296+
public function offsetGet(mixed $offset): mixed
297297
{
298298
return isset($this->data[$offset]) ? $this->data[$offset] : null;
299299
}
300300

301-
public function offsetSet($offset, $value)
301+
public function offsetSet(mixed $offset, mixed $value): void
302302
{
303303
$this->data[$offset] = $value;
304304
}
305305

306-
public function offsetUnset($offset)
306+
public function offsetUnset(mixed $offset): void
307307
{
308308
unset($this->data[$offset]);
309309
}

0 commit comments

Comments
 (0)