jmgq / php-a-star

A* (A Star) search algorithm for PHP
MIT License
64 stars 18 forks source link

Correct Return Type of getIterator() #19

Closed nineff closed 2 years ago

nineff commented 2 years ago

Iterator Aggregate requires the getIterator() method to return Traversable, not iterable. See https://www.php.net/manual/en/class.iteratoraggregate.php This fixes PHP 8.1 deprecation notices.

jmgq commented 2 years ago

Well spotted, @nineff. Thanks for the fix!