PHP 8.6 lets enums define __debugInfo(), which controls what var_dump shows for ...
Eric Van Johnson :phparch: @eric@phparch.social
PHP 8.6 lets enums define __debugInfo(), which controls what var_dump shows for an enum case. The article covers the RFC examples, a practical var_dump pattern, and what static analysis tools need to update.
https://shocm.me/posts/2026-11-11-php-86-debugable-enums-debuginfo/