[RFC] Allow __toString() on enums#20415
Conversation
|
In case you aren't aware of the previous proposal: https://wiki.php.net/rfc/auto-implement_stringable_for_string_backed_enums The feedback was mixed, and the proposal was eventually withdrawn. Ofc, the two proposals aren't equivalent but I suspect a lot of the feedback will be the same. |
|
The RFC and the provided test cases in this PR only cover unbacked and string-backed enums that implement |
|
Replaced with #21425 based on mailing list feedback |
https://wiki.php.net/rfc/stringable-enums