You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fatal error: Uncaught Error: Call to undefined method SplFixedArray::valid() in /in/9mO1i:2
Stack trace:
#0 {main}
thrown in /in/9mO1i on line 2
Process exited with code 255.
But I expected this output instead:
(blank)
I don't see any notice about SplFixedArray::valid being deprecated/removed in the documentation, and there's no mention of it in the PHP8.0.0 changelog https://www.php.net/ChangeLog-8.php either,
but it has been unavailable since PHP8.0.0.
PHP Version
PHP8.4.5
Operating System
No response
The text was updated successfully, but these errors were encountered:
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.
Description
The following code:
Resulted in this output:
But I expected this output instead:
I don't see any notice about SplFixedArray::valid being deprecated/removed in the documentation, and there's no mention of it in the PHP8.0.0 changelog https://www.php.net/ChangeLog-8.php either,
but it has been unavailable since PHP8.0.0.
PHP Version
PHP8.4.5
Operating System
No response
The text was updated successfully, but these errors were encountered: