Skip to content

1.15.1

Compare
Choose a tag to compare
@lukeify lukeify released this 28 Jan 05:54
· 13 commits to master since this release

What's changed

  • Bluewing\Rules\ValidEnumerationValue has been renamed to Bluewing\Rules\ValidEnum, and now accepts any PHP 8.1 native enumeration which implements the BackedEnum interface. Example usage:

    $rule = new ValidEnum(MyEnum::class);
    $rule->passes('attributeName', 'valueOnBackedEnumeration'); // true or false