Call to undefined method SplFixedArray::rewind()
. SplFixedArray is now an IteratorAggregate and not an Iterator.
SplFixedArray::rewind(), ::current(), ::key(), ::next(), and ::valid()
have been removed. In their place, SplFixedArray::getIterator() has been
added. Any code which uses explicit iteration over SplFixedArray must now
obtain an Iterator through SplFixedArray::getIterator(). This means that
SplFixedArray is now safe to use in nested loops.
Therefore I deduct that immutable.php is not compatible with PHP 8.0 and above, as claimed in package metadata.
(I am using the package via composer. there ">=7.1.0" is claimed)