[php-src] Issue #8156: Classes extending `SplFixedArray` can not implement `RecursiveIterator`
| From: | damianwadley | Date: | Mon, 28 Feb 2022 00:36:56 +0000 |
| Subject: | [php-src] Issue #8156: Classes extending `SplFixedArray` can not implement `RecursiveIterator` | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240065@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8156
Comment Author: damianwadley
> Is this intended, or a bug?
Is _what_ intended or a bug?
If you want a "recursive fixed array" based on SplFixedArray then you can override
getIterator to return a
[RecursiveArrayIterator](https://www.php.net/manual/en/class.recursivearrayiterator.php).