1.15.1
What's changed
-
Bluewing\Rules\ValidEnumerationValue
has been renamed toBluewing\Rules\ValidEnum
, and now accepts any PHP 8.1 native enumeration which implements theBackedEnum
interface. Example usage:$rule = new ValidEnum(MyEnum::class); $rule->passes('attributeName', 'valueOnBackedEnumeration'); // true or false