Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/ArrayTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function __unset($name) {
* @param string $value
* @ignore
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{

Expand All @@ -58,6 +59,7 @@ public function offsetSet($offset, $value)
* @return bool
* @ignore
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return is_callable([$this, 'get' . $offset]) ||
Expand All @@ -69,6 +71,7 @@ public function offsetExists($offset)
* @param string $offset
* @ignore
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{

Expand All @@ -83,6 +86,7 @@ public function offsetUnset($offset)
* @return mixed|null
* @ignore
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{

Expand Down
1 change: 1 addition & 0 deletions src/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ public function getAst()
* @return stdClass
* @ignore
*/
#[\ReturnTypeWillChange]
public function jsonSerialize () {

return $this->getAst();
Expand Down
1 change: 1 addition & 0 deletions src/Element/RuleList.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ public function remove(ElementInterface $element)
* return an iterator of child nodes
* @return ArrayIterator|Traversable
*/
#[\ReturnTypeWillChange]
public function getIterator()
{

Expand Down
1 change: 1 addition & 0 deletions src/Property/PropertyList.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ public function isEmpty() {
/**
* @inheritDoc
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return $this->getProperties();
Expand Down
1 change: 1 addition & 0 deletions src/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -1466,6 +1466,7 @@ public function __toString()
return $this->render();
}

#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return $this->render();
Expand Down
Loading