[php-src] master: NEWS/UPGRADING entries for new ReflectionAttribute methods

Gina Peter Banyard <[email protected]> Thu, 30 Jul 2026 20:18:16 +0000
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Gina Peter Banyard (Girgias)
Date: 2026-07-30T21:18:10+01:00

Commit: https://github.com/php/php-src/commit/9ed85af67e9a90d1599b9880720f23c2e7e06eae
Raw diff: https://github.com/php/php-src/commit/9ed85af67e9a90d1599b9880720f23c2e7e06eae.diff

NEWS/UPGRADING entries for new ReflectionAttribute methods

Changed paths:
  M  NEWS
  M  UPGRADING


Diff:

diff --git a/NEWS b/NEWS
index ca60824033c1..4364d69650e5 100644
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,11 @@ PHP                                                                        NEWS
     error handler instead of emitting a warning and continuing with an empty
     string. (Weilin Du)
 
+- Reflection:
+  . Added ReflectionAttribute::inNamespace(),
+    ReflectionAttribute::getNamespaceName(), and
+    ReflectionAttribute::getShortName(). (Girgias)
+
 - Standard:
   . The following functions now raise a ValueError when the $filename argument
     contains NUL bytes: fileperms(), fileinode(), filesize(), fileowner(),
diff --git a/UPGRADING b/UPGRADING
index 8f107d19ec23..fd66c7e61180 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -483,6 +483,9 @@ PHP 8.6 UPGRADE NOTES
     RFC: https://wiki.php.net/rfc/isreadable-iswriteable
   . ReflectionParameter::getDocComment()
     RFC: https://wiki.php.net/rfc/parameter-doccomments
+  . ReflectionAttribute::inNamespace()
+  . ReflectionAttribute::getNamespaceName()
+  . ReflectionAttribute::getShortName()
 
 - Standard:
   . clamp() returns the given value if in range, else return the nearest