Doc #81014 [Com]: Update docs for php8
[email protected] ("sheyda dot babi5161 at gmail dot com") Wed, 14 Dec 2022 05:45:25 +0000
| Newsgroups | php.doc.bugs |
|---|---|
| Message-ID | <[email protected]> |
Edit report at https://bugs.php.net/bug.php?id=81014&edit=1 ID: 81014 Comment by: sheyda dot babi5161 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: Bumped into your thread. ok for creating it. (https://www.myfortiva.net/)github.com Previous Comments: ------------------------------------------------------------------------ [2022-12-03 05:39:50] fariba dot shami326 at gmail dot com 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 ------------------------------------------------------------------------ [2021-05-06 10:53:42] [email protected] 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