Doc #81014 [Com]: Update docs for php8
Edit report at https://bugs.php.net/bug.php?id=81014&edit=1
ID: 81014
Comment by: fariba dot shami326 at gmail dot com
Reported by: egger1991 at gmail dot com
Summary: Update docs for php8
Status: Verified
Type: Documentation Problem
Package: SPL related
PHP Version: 8.0.5
Block user comment: N
Private report: N
New Comment:
That's great. I was impressed by your writing. I am happy to see such a topic. Please come to
my blog and read it.
(https://www.scoresense.me/)php.net
Previous Comments:
------------------------------------------------------------------------
[2021-05-06 10:53:42] cmb@php.net
While this is mentioned in the migration guide[1], it is not yet
documented in the manual proper. I'm not quite sure how to do it,
so that the docs are still valid for PHP 7 and 8.
[1] <https://www.php.net/manual/en/migration80.incompatible.php#migration80.incompatible.spl>
------------------------------------------------------------------------
[2021-05-05 21:39:59] egger1991 at gmail dot com
Description:
------------
---
From manual page: https://php.net/splfixedarray.rewind
---
Update docs for php8:
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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81014&edit=1
Thread (5 messages)