go to bug id or search bugs for
Using docker image php:8.0.0rc1-fpm-alpine3.12;
Fatal error: Uncaught Error: Call to undefined method SplFixedArray::rewind() in /app/test.php:4
thrown in /app/test.php on line 4
Not sure if removed by design in PHP8, but it is not in the docs.
$foo = new \SplFixedArray();
Add a Patch
Add a Pull Request
SplFixedArray no longer implements Iterator in PHP 8. You can acquire an iterator using $array->getIterator().
The documentation is not yet update for PHP 8.0, but this is mentioned in the upgrading notes here: https://github.com/php/php-src/blob/e4e2541c1a90daf708ab1ee4d44f2ab2883ce84b/UPGRADING#L515-L520
Thank you, I've missed the document, feel free to close this report as invalid :)