X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseCollection.php;h=97e772f168b330bd2706eefc208d576153d764f1;hb=ca32134830a468c4e0a1de1e013e1deb5d4cbae6;hp=c711755722c13804bb1fdef439b700bf58c62375;hpb=7a39be8270c1ce56c7a2df078bfbfd310601c569;p=friendica.git diff --git a/src/BaseCollection.php b/src/BaseCollection.php index c711755722..97e772f168 100644 --- a/src/BaseCollection.php +++ b/src/BaseCollection.php @@ -1,6 +1,6 @@ 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); } /**