From c56c43c023fadbf06bbb82e85d081185f3fc7525 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Fri, 6 Feb 2026 14:57:23 +0100 Subject: [PATCH 1/4] Fix 5 class method signatures to match php-src stubs - PDOStatement::setFetchMode: bool -> true - Phar::setStub: bool -> true - PharData::setStub: bool -> true, $len -> $length - ReflectionClass::getStaticPropertyValue: $def_value -> $default - IntlBreakIterator::getPartsIterator: param type string -> int --- .../intlbreakiterator/getpartsiterator.xml | 2 +- reference/pdo/pdostatement/setfetchmode.xml | 27 +++++++++++++++---- reference/phar/Phar/setStub.xml | 5 ++-- reference/phar/PharData/setStub.xml | 25 ++++++++++++++--- .../getstaticpropertyvalue.xml | 4 +-- 5 files changed, 49 insertions(+), 14 deletions(-) diff --git a/reference/intl/intlbreakiterator/getpartsiterator.xml b/reference/intl/intlbreakiterator/getpartsiterator.xml index bc6cb65480ac..27360b1ba8a7 100644 --- a/reference/intl/intlbreakiterator/getpartsiterator.xml +++ b/reference/intl/intlbreakiterator/getpartsiterator.xml @@ -10,7 +10,7 @@ &reftitle.description; public IntlPartsIteratorIntlBreakIterator::getPartsIterator - stringtypeIntlPartsIterator::KEY_SEQUENTIAL + inttypeIntlPartsIterator::KEY_SEQUENTIAL diff --git a/reference/pdo/pdostatement/setfetchmode.xml b/reference/pdo/pdostatement/setfetchmode.xml index 9cf0fa78a673..1381cac2d15c 100644 --- a/reference/pdo/pdostatement/setfetchmode.xml +++ b/reference/pdo/pdostatement/setfetchmode.xml @@ -11,25 +11,25 @@ &reftitle.description; - public boolPDOStatement::setFetchMode + public truePDOStatement::setFetchMode intmode - public boolPDOStatement::setFetchMode + public truePDOStatement::setFetchMode intmodePDO::FETCH_COLUMN intcolno - public boolPDOStatement::setFetchMode + public truePDOStatement::setFetchMode intmodePDO::FETCH_CLASS stringclass arraynullconstructorArgs&null; - public boolPDOStatement::setFetchMode + public truePDOStatement::setFetchMode intmodePDO::FETCH_INTO objectobject @@ -88,10 +88,27 @@ &reftitle.returnvalues; - &return.success; + &return.true.always; + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &return.type.true; + + + + + &reftitle.examples; diff --git a/reference/phar/Phar/setStub.xml b/reference/phar/Phar/setStub.xml index c369e22b4d43..4c3d01399ed1 100644 --- a/reference/phar/Phar/setStub.xml +++ b/reference/phar/Phar/setStub.xml @@ -8,7 +8,7 @@ &reftitle.description; - public boolPhar::setStub + public truePhar::setStub resourcestringstub intlength-1 @@ -72,7 +72,7 @@ include 'phar://myphar.phar/somefile.php'; &reftitle.returnvalues; - &return.success; + &return.true.always; @@ -98,6 +98,7 @@ include 'phar://myphar.phar/somefile.php'; + &return.type.true; 8.3.0 diff --git a/reference/phar/PharData/setStub.xml b/reference/phar/PharData/setStub.xml index 8f5ffdd5376b..bff2c91596dd 100644 --- a/reference/phar/PharData/setStub.xml +++ b/reference/phar/PharData/setStub.xml @@ -8,9 +8,9 @@ &reftitle.description; - public boolPharData::setStub + public truePharData::setStub stringstub - intlen-1 + intlength-1 @@ -34,7 +34,7 @@ - len + length @@ -49,7 +49,7 @@ &reftitle.returnvalues; - &return.success; + &return.true.always; @@ -60,6 +60,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &return.type.true; + + + + + &reftitle.seealso; diff --git a/reference/reflection/reflectionclass/getstaticpropertyvalue.xml b/reference/reflection/reflectionclass/getstaticpropertyvalue.xml index e010b312cf7f..243d997e8e15 100644 --- a/reference/reflection/reflectionclass/getstaticpropertyvalue.xml +++ b/reference/reflection/reflectionclass/getstaticpropertyvalue.xml @@ -12,7 +12,7 @@ public mixedReflectionClass::getStaticPropertyValue stringname - mixeddef_value + mixeddefault Gets the value of a static property on this class. @@ -33,7 +33,7 @@ - def_value + default A default value to return in case the class does not declare a static From 47736da99f5f0cabbcbac1c92742ed555a020b6b Mon Sep 17 00:00:00 2001 From: lacatoire Date: Wed, 22 Apr 2026 15:01:33 +0200 Subject: [PATCH 2/4] Use explicit 8.4.0 changelog rows instead of &return.type.true; (which is 8.2.0) --- reference/pdo/pdostatement/setfetchmode.xml | 7 ++++++- reference/phar/Phar/setStub.xml | 7 ++++++- reference/phar/PharData/setStub.xml | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/reference/pdo/pdostatement/setfetchmode.xml b/reference/pdo/pdostatement/setfetchmode.xml index 1381cac2d15c..93fc45aaaa5f 100644 --- a/reference/pdo/pdostatement/setfetchmode.xml +++ b/reference/pdo/pdostatement/setfetchmode.xml @@ -103,7 +103,12 @@ - &return.type.true; + + 8.4.0 + + The return type is &true; now; previously, it was bool. + + diff --git a/reference/phar/Phar/setStub.xml b/reference/phar/Phar/setStub.xml index 4c3d01399ed1..0b4028b7282b 100644 --- a/reference/phar/Phar/setStub.xml +++ b/reference/phar/Phar/setStub.xml @@ -98,7 +98,12 @@ include 'phar://myphar.phar/somefile.php'; - &return.type.true; + + 8.4.0 + + The return type is &true; now; previously, it was bool. + + 8.3.0 diff --git a/reference/phar/PharData/setStub.xml b/reference/phar/PharData/setStub.xml index bff2c91596dd..4ed7c1cf208a 100644 --- a/reference/phar/PharData/setStub.xml +++ b/reference/phar/PharData/setStub.xml @@ -71,7 +71,12 @@ - &return.type.true; + + 8.4.0 + + The return type is &true; now; previously, it was bool. + + From d00e9e89540d39050ebdb0494e99808cdf6d4564 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Mon, 11 May 2026 20:29:50 +0200 Subject: [PATCH 3/4] Address review feedback - IntlBreakIterator::getPartsIterator: revert param type to string; the int change in php-src (master only) is not backported to PHP-8.4/8.5, so documented versions must keep string. - Factor the 8.4.0 "return type true" changelog row into a new shared entity return.type.true.84, mirroring return.type.true. --- language-snippets.ent | 7 +++++++ reference/intl/intlbreakiterator/getpartsiterator.xml | 2 +- reference/pdo/pdostatement/setfetchmode.xml | 7 +------ reference/phar/Phar/setStub.xml | 7 +------ reference/phar/PharData/setStub.xml | 7 +------ 5 files changed, 11 insertions(+), 19 deletions(-) diff --git a/language-snippets.ent b/language-snippets.ent index 7d4211215ab2..2c3dfc8bbcd0 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -835,6 +835,13 @@ searched for within the + 8.4.0 + + The return type is &true; now; previously, it was bool. + +'> + diff --git a/reference/intl/intlbreakiterator/getpartsiterator.xml b/reference/intl/intlbreakiterator/getpartsiterator.xml index 27360b1ba8a7..bc6cb65480ac 100644 --- a/reference/intl/intlbreakiterator/getpartsiterator.xml +++ b/reference/intl/intlbreakiterator/getpartsiterator.xml @@ -10,7 +10,7 @@ &reftitle.description; public IntlPartsIteratorIntlBreakIterator::getPartsIterator - inttypeIntlPartsIterator::KEY_SEQUENTIAL + stringtypeIntlPartsIterator::KEY_SEQUENTIAL diff --git a/reference/pdo/pdostatement/setfetchmode.xml b/reference/pdo/pdostatement/setfetchmode.xml index 93fc45aaaa5f..4b9565c54d87 100644 --- a/reference/pdo/pdostatement/setfetchmode.xml +++ b/reference/pdo/pdostatement/setfetchmode.xml @@ -103,12 +103,7 @@ - - 8.4.0 - - The return type is &true; now; previously, it was bool. - - + &return.type.true.84; diff --git a/reference/phar/Phar/setStub.xml b/reference/phar/Phar/setStub.xml index 0b4028b7282b..10bb3ae19a48 100644 --- a/reference/phar/Phar/setStub.xml +++ b/reference/phar/Phar/setStub.xml @@ -98,12 +98,7 @@ include 'phar://myphar.phar/somefile.php'; - - 8.4.0 - - The return type is &true; now; previously, it was bool. - - + &return.type.true.84; 8.3.0 diff --git a/reference/phar/PharData/setStub.xml b/reference/phar/PharData/setStub.xml index 4ed7c1cf208a..7981fd3745af 100644 --- a/reference/phar/PharData/setStub.xml +++ b/reference/phar/PharData/setStub.xml @@ -71,12 +71,7 @@ - - 8.4.0 - - The return type is &true; now; previously, it was bool. - - + &return.type.true.84; From eb40a6c85b3965371cf994e575bb97485f507c2a Mon Sep 17 00:00:00 2001 From: lacatoire Date: Sat, 23 May 2026 22:59:30 +0200 Subject: [PATCH 4/4] Use simpara for return value paragraphs (style guide) --- reference/pdo/pdostatement/setfetchmode.xml | 4 ++-- reference/phar/Phar/setStub.xml | 4 ++-- reference/phar/PharData/setStub.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/reference/pdo/pdostatement/setfetchmode.xml b/reference/pdo/pdostatement/setfetchmode.xml index 4b9565c54d87..8c7354f4ad1e 100644 --- a/reference/pdo/pdostatement/setfetchmode.xml +++ b/reference/pdo/pdostatement/setfetchmode.xml @@ -87,9 +87,9 @@ &reftitle.returnvalues; - + &return.true.always; - + diff --git a/reference/phar/Phar/setStub.xml b/reference/phar/Phar/setStub.xml index 10bb3ae19a48..240d34dce6e6 100644 --- a/reference/phar/Phar/setStub.xml +++ b/reference/phar/Phar/setStub.xml @@ -71,9 +71,9 @@ include 'phar://myphar.phar/somefile.php'; &reftitle.returnvalues; - + &return.true.always; - + diff --git a/reference/phar/PharData/setStub.xml b/reference/phar/PharData/setStub.xml index 7981fd3745af..572169f50b43 100644 --- a/reference/phar/PharData/setStub.xml +++ b/reference/phar/PharData/setStub.xml @@ -48,9 +48,9 @@ &reftitle.returnvalues; - + &return.true.always; - +