php-judy
php-judy copied to clipboard
Documentation: Iterator interface is not implemented, while docs says it is
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.