array_multisort() takes SORT_ASC/SORT_DESC as ints, so 42 gets right through. PHP 8.6 adds a SortDirection enum in the global namespace, and the RFC hints at wider adoption.
https://www.phparch.com/2026/09/stop-writing-php-like-this-8-6-fixes-it/

array_multisort() takes SORT_ASC/SORT_DESC as ints, so 42 gets right through. PHP 8.6 adds a SortDirection enum in the global namespace, and the RFC hints at wider adoption.
https://www.phparch.com/2026/09/stop-writing-php-like-this-8-6-fixes-it/
Sealed interfaces are great when the compiler should know every valid branch of a domain decision. They turn “remember to handle this case” into something your type system can help enforce. #Kotlin #TypeSafety #SoftwareDesign
Really Gotta Make Sure It Doesn't Change
#programming #Cpp #Typesafety #Over-engineering #Paranoidprogramming
https://programmerhumor.io/cpp-memes/really-gotta-make-sure-it-doesnt-change-fj9b