symfonycorp / connect

The SymfonyConnect official API SDK
https://connect.symfony.com/
MIT License
90 stars 40 forks source link

Fix a PHP deprecation #125

Closed javiereguiluz closed 11 months ago

javiereguiluz commented 11 months ago

It fixes this error:

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