# ReflectionClass output for enums

- Thread: https://externals.io/message/126504
- Original archive: https://news-web.php.net/php.internals/126504
- Started by Daniel Scherzer on 2025-02-25T17:27:41+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #126504 — Daniel Scherzer — 2025-02-25T17:27:41+00:00

URL: https://externals.io/message/126504#126504

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

---

## #126567 — Gina P. Banyard — 2025-03-04T22:24:37+00:00

URL: https://externals.io/message/126504#126567 · In reply to: #126504

> 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?

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

Best regards,
Gina P. Banyard
