in the case of jsonSerialize, search for this function and update its return param as follows
/**
* @inheritdoc
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
in the case of getIterator, search for this function and update its return param as follows
/**
* @return \Traversable
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new \ArrayIterator($this->items);
}
/**
* @inheritdoc
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
in the case of getIterator, search for this function and update its return param as follows
/**
* @return \Traversable
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new \ArrayIterator($this->items);
}