PHP 8.6 lets enums define __debugInfo(), which controls what var_dump shows for ...

@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.

shocm.me/posts/2026-11-11-php-