From c09dfad3efa431a6ac114ea1ea4a1045755cef51 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Sun, 9 Oct 2022 12:02:42 +0545 Subject: [PATCH] Add ReturnTypeWillChange to methods that need it for PHP 8.1 --- Core/Frameworks/Flake/Core/Datastructure/ChainLink.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/Frameworks/Flake/Core/Datastructure/ChainLink.php b/Core/Frameworks/Flake/Core/Datastructure/ChainLink.php index 313569f..8bd4479 100644 --- a/Core/Frameworks/Flake/Core/Datastructure/ChainLink.php +++ b/Core/Frameworks/Flake/Core/Datastructure/ChainLink.php @@ -60,6 +60,7 @@ abstract class ChainLink implements \Flake\Core\Datastructure\Chainable { $this->__container->offsetUnset($offset); } + #[\ReturnTypeWillChange] function &offsetGet($offset) { if (is_null($this->__container)) { return null; @@ -74,10 +75,12 @@ abstract class ChainLink implements \Flake\Core\Datastructure\Chainable { $this->__container->rewind(); } + #[\ReturnTypeWillChange] function current() { return $this->__container->current(); } + #[\ReturnTypeWillChange] function key() { return $this->__container->key(); }