1x: Return type of SymfonyCorp\Connect\Api\Entity\Index::getIterator(): Traversable|array
should either be compatible with IteratorAggregate::getIterator(): Traversable,
or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
It fixes this error: