#PHP tip: before you cast a legacy status column to an enum, find the values that won't fit.
from() throws a ValueError on "Publishd", but tryFrom() returns null so you can clean up first.

Not all Enum name retrieval methods riff at the same speed.
If you’re still using the usual approach without thinking about the cost, this one’s for you.
Turn it up here!
#dotnet #MVPBuzz #Enums #CodePerformance
dotnettips.com/2024/05/01/g...