From b59f82d97356e3777e2630cb6640382f42ad9670 Mon Sep 17 00:00:00 2001 From: gggeek Date: Tue, 7 Dec 2021 11:40:06 +0000 Subject: [PATCH] fix compatibility with php 8.1 --- src/Value.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Value.php b/src/Value.php index 1e7e288..ec43fc1 100644 --- a/src/Value.php +++ b/src/Value.php @@ -518,6 +518,7 @@ class Value implements \Countable, \IteratorAggregate, \ArrayAccess * * @return integer */ + #[\ReturnTypeWillChange] public function count() { switch ($this->mytype) { @@ -538,6 +539,7 @@ class Value implements \Countable, \IteratorAggregate, \ArrayAccess * @return \ArrayIterator * @internal required to be public to implement an Interface */ + #[\ReturnTypeWillChange] public function getIterator() { switch ($this->mytype) { @@ -558,6 +560,7 @@ class Value implements \Countable, \IteratorAggregate, \ArrayAccess * @param mixed $value * @throws \Exception */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { switch ($this->mytype) { @@ -603,6 +606,7 @@ class Value implements \Countable, \IteratorAggregate, \ArrayAccess * @param mixed $offset * @return bool */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { switch ($this->mytype) { @@ -623,6 +627,7 @@ class Value implements \Countable, \IteratorAggregate, \ArrayAccess * @param mixed $offset * @throws \Exception */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { switch ($this->mytype) { @@ -646,6 +651,7 @@ class Value implements \Countable, \IteratorAggregate, \ArrayAccess * @return mixed|Value|null * @throws \Exception */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { switch ($this->mytype) { -- 2.43.0