Workaday Reading

5 Pitfalls of Upgrade to Native PHP Enums and How to Avoid Them

“Native PHP Enums came almost a year ago in PHP 8.1. It’s pretty easy to add a new enum. But how do we handle the old hacks we used to use before enums were legal in PHP land? MyCLabs, Spatie, or constants list. Today we’ll upgrade them all.”


read »

Leave a Reply

Your email address will not be published. Required fields are marked *