Doc #81014 [Opn->Ver]: Update docs for php8

From: Date: Thu, 06 May 2021 10:53:42 +0000
Subject: Doc #81014 [Opn->Ver]: Update docs for php8
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18750@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81014&edit=1

 ID:                 81014
 Updated by:         cmb@php.net
 Reported by:        egger1991 at gmail dot com
 Summary:            Update docs for php8
-Status:             Open
+Status:             Verified
 Type:               Documentation Problem
 Package:            SPL related
 PHP Version:        8.0.5
 Block user comment: N
 Private report:     N

 New Comment:

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>


Previous Comments:
------------------------------------------------------------------------
[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)

« previous php.doc.bugs (#18750) next »