Open neghmurken opened 1 year ago
This PR features new assertions for PHP8.1 enums.
Provides :
Assertion::enumExists($value)
$value
Assertion::enumCase($value, $enumClass)
$enumClass
This PR features new assertions for PHP8.1 enums.
Provides :
Assertion::enumExists($value)
that checks if$value
is a valid enum FQCNAssertion::enumCase($value, $enumClass)
that checks if$value
is valid backing value for the$enumClass
enum