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
*/...