X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseCollection.php;h=97e772f168b330bd2706eefc208d576153d764f1;hb=7b02585b978f7aef9d5c5a2c5d2b238cb674a4b7;hp=f6fa9bbd4dec7329215b81cb644f3260a4f0c2eb;hpb=e90ad0c1cd24d88d428965c20829d2912e2e20a0;p=friendica.git diff --git a/src/BaseCollection.php b/src/BaseCollection.php index f6fa9bbd4d..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($offset) + #[\ReturnTypeWillChange] + public function offsetUnset($key): void { - if ($this->offsetExists($offset)) { + if ($this->offsetExists($key)) { $this->totalCount--; } - parent::offsetUnset($offset); + parent::offsetUnset($key); } /**