From: gggeek Date: Tue, 7 Dec 2021 11:40:06 +0000 (+0000) Subject: fix compatibility with php 8.1 X-Git-Tag: plcapi-7.1-0~3^2~33 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=b59f82d97356e3777e2630cb6640382f42ad9670 fix compatibility with php 8.1 --- 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) {