X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseCollection.php;h=ad68dc81ccce49c398c3bbb09acdf105e4bc961b;hb=9fbdcb5459e4acb158961427837612999253e046;hp=c711755722c13804bb1fdef439b700bf58c62375;hpb=7a39be8270c1ce56c7a2df078bfbfd310601c569;p=friendica.git diff --git a/src/BaseCollection.php b/src/BaseCollection.php index c711755722..ad68dc81cc 100644 --- a/src/BaseCollection.php +++ b/src/BaseCollection.php @@ -48,25 +48,27 @@ class BaseCollection extends \ArrayIterator /** * @inheritDoc */ - public function offsetSet(mixed $offset, mixed $value): void + #[\ReturnTypeWillChange] + public function offsetSet($key, $value): void { - if (is_null($offset)) { + if (is_null($key)) { $this->totalCount++; } - parent::offsetSet($offset, $value); + parent::offsetSet($key, $value); } /** * @inheritDoc */ - public function offsetUnset(mixed $offset): void + #[\ReturnTypeWillChange] + public function offsetUnset($key): void { - if ($this->offsetExists($offset)) { + if ($this->offsetExists($key)) { $this->totalCount--; } - parent::offsetUnset($offset); + parent::offsetUnset($key); } /**