]> git.mxchange.org Git - friendica.git/blobdiff - src/BaseCollection.php
Merge pull request #12277 from nupplaphil/mod/fbrowser
[friendica.git] / src / BaseCollection.php
index c711755722c13804bb1fdef439b700bf58c62375..ad68dc81ccce49c398c3bbb09acdf105e4bc961b 100644 (file)
@@ -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);
        }
 
        /**