diff --git a/src/ArrayTrait.php b/src/ArrayTrait.php index d8768471..87f25f40 100755 --- a/src/ArrayTrait.php +++ b/src/ArrayTrait.php @@ -44,6 +44,7 @@ public function __unset($name) { * @param string $value * @ignore */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { @@ -58,6 +59,7 @@ public function offsetSet($offset, $value) * @return bool * @ignore */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return is_callable([$this, 'get' . $offset]) || @@ -69,6 +71,7 @@ public function offsetExists($offset) * @param string $offset * @ignore */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { @@ -83,6 +86,7 @@ public function offsetUnset($offset) * @return mixed|null * @ignore */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { diff --git a/src/Element.php b/src/Element.php index 4983effd..8ac13e20 100755 --- a/src/Element.php +++ b/src/Element.php @@ -613,6 +613,7 @@ public function getAst() * @return stdClass * @ignore */ + #[\ReturnTypeWillChange] public function jsonSerialize () { return $this->getAst(); diff --git a/src/Element/RuleList.php b/src/Element/RuleList.php index 540e5bd6..08b35db6 100755 --- a/src/Element/RuleList.php +++ b/src/Element/RuleList.php @@ -281,6 +281,7 @@ public function remove(ElementInterface $element) * return an iterator of child nodes * @return ArrayIterator|Traversable */ + #[\ReturnTypeWillChange] public function getIterator() { diff --git a/src/Property/PropertyList.php b/src/Property/PropertyList.php index d9fde4bf..f2be2f1b 100755 --- a/src/Property/PropertyList.php +++ b/src/Property/PropertyList.php @@ -360,6 +360,7 @@ public function isEmpty() { /** * @inheritDoc */ + #[\ReturnTypeWillChange] public function getIterator() { return $this->getProperties(); diff --git a/src/Value.php b/src/Value.php index c5050752..385ac0d4 100755 --- a/src/Value.php +++ b/src/Value.php @@ -1466,6 +1466,7 @@ public function __toString() return $this->render(); } + #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->render();