php-judy icon indicating copy to clipboard operation
php-judy copied to clipboard

Documentation: Iterator interface is not implemented, while docs says it is

Open weirdan opened this issue 9 years ago • 0 comments

Documentation at http://us2.php.net/manual/en/class.judy.php says:

The Judy class implements the ArrayAccess interface and the Iterator interface

but in fact Iterator interface is not supported:

❯ php --re Judy | grep -i Extension Extension [ extension #50 judy version 1.0.2 ] { ❯ php --rc Judy | grep Class Class [ internal:judy class Judy implements ArrayAccess, Countable ] {

This does matter for type hints, e.g. LimitIterator from SPL does not accept a Judy instance.

weirdan avatar Sep 01 '15 17:09 weirdan