From 83fd1e75a2fcc6aecb180697512fe24fdbbe76e8 Mon Sep 17 00:00:00 2001 From: Masroor Ehsan Date: Sun, 12 Dec 2021 15:09:01 +0200 Subject: [PATCH] Added ReturnTypeWillChange attribute to Collection class methods --- flight/util/Collection.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flight/util/Collection.php b/flight/util/Collection.php index 883dccf..97658ec 100644 --- a/flight/util/Collection.php +++ b/flight/util/Collection.php @@ -93,6 +93,7 @@ final class Collection implements ArrayAccess, Iterator, Countable, JsonSerializ * * @return mixed Value */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->data[$offset] ?? null; @@ -104,6 +105,7 @@ final class Collection implements ArrayAccess, Iterator, Countable, JsonSerializ * @param string $offset Offset * @param mixed $value Value */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (null === $offset) { @@ -148,6 +150,7 @@ final class Collection implements ArrayAccess, Iterator, Countable, JsonSerializ * * @return mixed Value */ + #[\ReturnTypeWillChange] public function current() { return current($this->data); @@ -158,6 +161,7 @@ final class Collection implements ArrayAccess, Iterator, Countable, JsonSerializ * * @return mixed Value */ + #[\ReturnTypeWillChange] public function key() { return key($this->data); @@ -168,6 +172,7 @@ final class Collection implements ArrayAccess, Iterator, Countable, JsonSerializ * * @return mixed Value */ + #[\ReturnTypeWillChange] public function next() { return next($this->data);