You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Currently testing PHP8.1 and I have this deprecated error for all class Requiring interface IteratorAggregate:
\composer\vendor\brick\geo\src\Polygon.php:249;"Return type of Brick\Geo\Polygon::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"
\composer\vendor\brick\geo\src\Point.php:331;"Return type of Brick\Geo\Point::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"
\composer\vendor\brick\geo\src\LineString.php:274;"Return type of Brick\Geo\LineString::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"
My temporary workaround (see getIterator.patch) was to add ReturnTypeWillChange on all getIterator functions but it may have a better answer to this
The text was updated successfully, but these errors were encountered:
Hi, thanks for your report. I pushed a commit to master adding an ArrayIterator return type to getIterator(), can you please test if it fixes the deprecation warning?
Hi,
Currently testing PHP8.1 and I have this deprecated error for all class Requiring interface IteratorAggregate:
My temporary workaround (see getIterator.patch) was to add
ReturnTypeWillChange
on all getIterator functions but it may have a better answer to thisThe text was updated successfully, but these errors were encountered: