PHP 8.6 Debugable Enums: Using __debugInfo() on Enum Cases November 11, 2026 php php-internals php-8-6 enums debugging PHP 8.6 lets enums define __debugInfo(). See the RFC examples, a practical var_dump pattern, and what static analysis tools need to update. Read more →
PHP 8.6 SortDirection Enum: Stop Passing 'ASC' and 'DESC' Strings Around October 27, 2026 php php-8-6 enums clean-code PHP 8.6 adds a global SortDirection enum. See how to replace ASC/DESC strings in query builders and sorters, and how to polyfill it on PHP 8.1 and up. Read more →