1.1.0
This version introduces a tryFrom
method.
This method tries to create an instance and returns null
instead of
throwing an exception for invalid values.
It mimics the PHP 8.1 Enum::tryFrom
method for easier refactoring.
This version introduces a tryFrom
method.
This method tries to create an instance and returns null
instead of
throwing an exception for invalid values.
It mimics the PHP 8.1 Enum::tryFrom
method for easier refactoring.