From 6f630a882d272dc1e796a41bb9b7fa8e4d53c01e Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Thu, 31 Jul 2025 17:38:23 -0700 Subject: [PATCH] NEWS/UPGRADING: fix missing `__` in `__toString()` Forgotten by yours truly in 36ae82b73e2ca97fdda2a78d114a578ce01c81f5 [skip ci] --- NEWS | 2 +- UPGRADING | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index a6b109170e5..d80bcb5d3a0 100644 --- a/NEWS +++ b/NEWS @@ -301,7 +301,7 @@ 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 + . Fixed bug GH-15766 (ReflectionClass::__toString() should have better output for enums). (DanielEScherzer) . Added ReflectionProperty::getMangledName() method. (alexandre-daubois) diff --git a/UPGRADING b/UPGRADING index c3641184f5d..723d6b28f7a 100644 --- a/UPGRADING +++ b/UPGRADING @@ -391,7 +391,7 @@ PHP 8.5 UPGRADE NOTES argument are lower than -1 or if soft_limit is greater than hard_limit. - Reflection: - . The output of ReflectionClass::toString() for enums has changed to + . 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. . The output of ReflectionProperty::__toString() for properties with