Skip to content

Commit 92dada6

Browse files
committed
Backwards-compatible type hints
1 parent 991b4e1 commit 92dada6

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

lib/Tmdb/Model/Common/GenericCollection.php

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

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

296-
public function offsetGet(mixed $offset): mixed
296+
#[\ReturnTypeWillChange]
297+
public function offsetGet($offset)
297298
{
298299
return isset($this->data[$offset]) ? $this->data[$offset] : null;
299300
}
300301

301-
public function offsetSet(mixed $offset, mixed $value): void
302+
public function offsetSet($offset, $value): void
302303
{
303304
$this->data[$offset] = $value;
304305
}
305306

306-
public function offsetUnset(mixed $offset): void
307+
public function offsetUnset($offset): void
307308
{
308309
unset($this->data[$offset]);
309310
}

0 commit comments

Comments
 (0)