From 36ae82b73e2ca97fdda2a78d114a578ce01c81f5 Mon Sep 17 00:00:00 2001 From: DanielEScherzer Date: Wed, 26 Mar 2025 14:17:25 -0700 Subject: [PATCH] NEWS/UPGRADING for GH-15956 --- NEWS | 2 ++ UPGRADING | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/NEWS b/NEWS index c2605daa5d8..d1165539400 100644 --- a/NEWS +++ b/NEWS @@ -125,6 +125,8 @@ PHP NEWS (DanielEScherzer) . Fixed bug GH-12856 (ReflectionClass::getStaticPropertyValue() returns UNDEF zval for uninitialized typed properties). (nielsdos) + . Fixed bug GH-15766 (ReflectionClass::toString() should have better output + for enums). (DanielEScherzer) - Session: . session_start() throws a ValueError on option argument if not a hashmap diff --git a/UPGRADING b/UPGRADING index 6d06234403d..319ed7662f3 100644 --- a/UPGRADING +++ b/UPGRADING @@ -201,6 +201,11 @@ PHP 8.5 UPGRADE NOTES . posix_fpathconf checks invalid file descriptors and sets last_error to EBADF and raises an E_WARNING message. +- Reflection: + . The output of ReflectionClass::toString() for enums has changed to + better indicate that the class is an enum, and that the enum cases + are enum cases rather than normal class constants. + - Session: . session_start is stricter in regard of the option argument. It throws a ValueError if the whole is not a hashmap or