[php-src] Issue #8156: Classes extending `SplFixedArray` can not implement `RecursiveIterator`
| From: | damianwadley | Date: | Mon, 28 Feb 2022 02:12:13 +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-240068@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8156
Comment Author: damianwadley
There are multiple issues in here that you might be asking about: whether SplFixedArray should be an
IteratorAggregate, whether implementing both Iterator and IteratorAggregate is a problem, whether
the conflict should be reported as a fatal error... Apparently you asked about the first one.
Yes: as of PHP 8.0, SplFixedArray uses IteratorAggregate instead of Iterator.
https://www.php.net/manual/en/migration80.incompatible.php#migration80.incompatible.spl