[doc-en] master: ext/spl, ext/sqlite3: document typed class constants (PHP 8.4) (#5736)

From: Date: Fri, 07 Aug 2026 12:38:37 +0000
Subject: [doc-en] master: ext/spl, ext/sqlite3: document typed class constants (PHP 8.4) (#5736)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-23545@lists.php.net to get a copy of this message
Author: Louis-Arnaud (lacatoire) Committer: GitHub (web-flow) Pusher: kamil-tekiela Date: 2026-08-07T13:38:34+01:00 Commit: https://github.com/php/doc-en/commit/6a2ad3ecf9b77855446019ed2d74aa6f734d35a8 Raw diff: https://github.com/php/doc-en/commit/6a2ad3ecf9b77855446019ed2d74aa6f734d35a8.diff ext/spl, ext/sqlite3: document typed class constants (PHP 8.4) (#5736) As of PHP 8.4.0 the class constants of the SPL and SQLite3 classes are now typed. Adds an 8.4.0 changelog entry to the affected class pages. Changed paths: M language-snippets.ent M reference/spl/arrayiterator.xml M reference/spl/arrayobject.xml M reference/spl/cachingiterator.xml M reference/spl/filesystemiterator.xml M reference/spl/multipleiterator.xml M reference/spl/recursivearrayiterator.xml M reference/spl/recursiveiteratoriterator.xml M reference/spl/recursivetreeiterator.xml M reference/spl/regexiterator.xml M reference/spl/spldoublylinkedlist.xml M reference/spl/splfileobject.xml M reference/spl/splpriorityqueue.xml M reference/sqlite3/sqlite3.xml Diff: diff --git a/language-snippets.ent b/language-snippets.ent index 8b4e7be1cea4..2f5f38bd28d3 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -5,6 +5,14 @@ <!ENTITY changelog.randomseed '<row xmlns="http://docbook.org/ns/docbook"><entry>4.2.0</entry><entry>The random number generator is seeded automatically.</entry></row>'> + +<!ENTITY changelog.class-constants-typed '<row xmlns="http://docbook.org/ns/docbook"> + <entry>8.4.0</entry> + <entry> + The class constants are now typed. + </entry> +</row>'> + <!-- Cautions --> <!ENTITY caution.cryptographically-insecure '<caution xmlns="http://docbook.org/ns/docbook"> <simpara> diff --git a/reference/spl/arrayiterator.xml b/reference/spl/arrayiterator.xml index f01ece25b3e8..e9fbeb0937ea 100644 --- a/reference/spl/arrayiterator.xml +++ b/reference/spl/arrayiterator.xml @@ -110,6 +110,23 @@ </section> }}} --> + <section role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &changelog.class-constants-typed; + </tbody> + </tgroup> + </informaltable> + </section> + </partintro> &reference.spl.entities.arrayiterator; diff --git a/reference/spl/arrayobject.xml b/reference/spl/arrayobject.xml index 5811493db82e..42d1f5fbc244 100644 --- a/reference/spl/arrayobject.xml +++ b/reference/spl/arrayobject.xml @@ -112,6 +112,23 @@ </section> }}} --> + <section role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &changelog.class-constants-typed; + </tbody> + </tgroup> + </informaltable> + </section> + </partintro> &reference.spl.entities.arrayobject; diff --git a/reference/spl/cachingiterator.xml b/reference/spl/cachingiterator.xml index 0c8a883b69f0..af9b6a3189f1 100644 --- a/reference/spl/cachingiterator.xml +++ b/reference/spl/cachingiterator.xml @@ -174,6 +174,23 @@ </section> + <section role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &changelog.class-constants-typed; + </tbody> + </tgroup> + </informaltable> + </section> + </partintro> &reference.spl.entities.cachingiterator; diff --git a/reference/spl/filesystemiterator.xml b/reference/spl/filesystemiterator.xml index 54c53f1d762f..2837659d508e 100644 --- a/reference/spl/filesystemiterator.xml +++ b/reference/spl/filesystemiterator.xml @@ -200,6 +200,23 @@ </section> <!-- }}} --> + <section role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &changelog.class-constants-typed; + </tbody> + </tgroup> + </informaltable> + </section> + </partintro> &reference.spl.entities.filesystemiterator; diff --git a/reference/spl/multipleiterator.xml b/reference/spl/multipleiterator.xml index 694c7eebf5d5..a31cb9d2366b 100644 --- a/reference/spl/multipleiterator.xml +++ b/reference/spl/multipleiterator.xml @@ -110,6 +110,23 @@ <!-- }}} --> + <section role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &changelog.class-constants-typed; + </tbody> + </tgroup> + </informaltable> + </section> + </partintro> &reference.spl.entities.multipleiterator; diff --git a/reference/spl/recursivearrayiterator.xml b/reference/spl/recursivearrayiterator.xml index 9355bf74241a..c75cc97fcfd3 100644 --- a/reference/spl/recursivearrayiterator.xml +++ b/reference/spl/recursivearrayiterator.xml @@ -86,6 +86,23 @@ </section> }}} --> + <section role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &changelog.class-constants-typed; + </tbody> + </tgroup> + </informaltable> + </section> + </partintro> &reference.spl.entities.recursivearrayiterator; diff --git a/reference/spl/recursiveiteratoriterator.xml b/reference/spl/recursiveiteratoriterator.xml index b376383c47ed..b42c86abbbfd 100644 --- a/reference/spl/recursiveiteratoriterator.xml +++ b/reference/spl/recursiveiteratoriterator.xml @@ -99,6 +99,23 @@ </section> <!-- }}} --> + <section role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &changelog.class-constants-typed; + </tbody> + </tgroup> + </informaltable> + </section> + </partintro> &reference.spl.entities.recursiveiteratoriterator; diff --git a/reference/spl/recursivetreeiterator.xml b/reference/spl/recursivetreeiterator.xml index ece291de19b9..ed494455cfed 100644 --- a/reference/spl/recursivetreeiterator.xml +++ b/reference/spl/recursivetreeiterator.xml @@ -165,6 +165,23 @@ <!-- }}} --> + <section role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &changelog.class-constants-typed; + </tbody> + </tgroup> + </informaltable> + </section> + </partintro> &reference.spl.entities.recursivetreeiterator; diff --git a/reference/spl/regexiterator.xml b/reference/spl/regexiterator.xml index e3dbb050ebe7..c844ebac99fb 100644 --- a/reference/spl/regexiterator.xml +++ b/reference/spl/regexiterator.xml @@ -201,6 +201,23 @@ </section> }}} --> + <section role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &changelog.class-constants-typed; + </tbody> + </tgroup> + </informaltable> + </section> + </partintro> &reference.spl.entities.regexiterator; diff --git a/reference/spl/spldoublylinkedlist.xml b/reference/spl/spldoublylinkedlist.xml index fe4ad7f81617..b4e102032791 100644 --- a/reference/spl/spldoublylinkedlist.xml +++ b/reference/spl/spldoublylinkedlist.xml @@ -142,6 +142,23 @@ </section> }}} --> + <section role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &changelog.class-constants-typed; + </tbody> + </tgroup> + </informaltable> + </section> + </partintro> &reference.spl.entities.spldoublylinkedlist; diff --git a/reference/spl/splfileobject.xml b/reference/spl/splfileobject.xml index 7b64f296436a..f61ba3a801db 100644 --- a/reference/spl/splfileobject.xml +++ b/reference/spl/splfileobject.xml @@ -108,6 +108,23 @@ </section> <!-- }}} --> + <section role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &changelog.class-constants-typed; + </tbody> + </tgroup> + </informaltable> + </section> + </partintro> &reference.spl.entities.splfileobject; diff --git a/reference/spl/splpriorityqueue.xml b/reference/spl/splpriorityqueue.xml index 96c1b06a4c89..3e4a6399b9f7 100644 --- a/reference/spl/splpriorityqueue.xml +++ b/reference/spl/splpriorityqueue.xml @@ -104,6 +104,23 @@ </section> }}} --> + <section role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &changelog.class-constants-typed; + </tbody> + </tgroup> + </informaltable> + </section> + </partintro> &reference.spl.entities.splpriorityqueue; diff --git a/reference/sqlite3/sqlite3.xml b/reference/sqlite3/sqlite3.xml index 1acddc8bb877..b5c7eeebdb27 100644 --- a/reference/sqlite3/sqlite3.xml +++ b/reference/sqlite3/sqlite3.xml @@ -521,6 +521,23 @@ </variablelist> </section> + <section role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &changelog.class-constants-typed; + </tbody> + </tgroup> + </informaltable> + </section> + </partintro> &reference.sqlite3.entities.sqlite3;

« previous php.doc.cvs (#23545) next »