[PHP-DEV] ReflectionClass output for enums

Hi internals,

A few months back I sent <https://github.com/php/php-src/pull/15956> for improving the output of ReflectionClass::__toString() when used for enums (and ReflectionEnum::__toString(), which just inherits that method). Since this is technically a breaking change if anyone is relying on the output of the string representations, it was suggested that I bring this up on the mailing list. Any objections?

-Daniel

On Tuesday, 25 February 2025 at 17:27, Daniel Scherzer <daniel.e.scherzer@gmail.com> wrote:

Hi internals,

A few months back I sent <https://github.com/php/php-src/pull/15956&gt; for improving the output of `ReflectionClass::__toString()` when used for enums (and `ReflectionEnum::__toString()`, which just inherits that method). Since this is technically a breaking change if anyone is relying on the output of the string representations, it was suggested that I bring this up on the mailing list. Any objections?

I don't think there are any objections, so this should be good to merge.

Best regards,
Gina P. Banyard