[php-src] Issue #8156: Classes extending `SplFixedArray` can not implement `RecursiveIterator`
| From: | ghostwriter | Date: | Mon, 28 Feb 2022 01:01:10 +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-240066@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8156
Comment Author: ghostwriter
> Is what intended or a bug?
Is the behavior described above, intended or a bug?
Before
PHP 8.0, you did not need to return RecursiveArrayIterator, you
only had to implement RecursiveIterator interface.
why doesn't this code work on >= 8.0.x?
* This behavior is not documented
* This change in behavior was not discussed or documented