CannotCastEnum
class CannotCastEnum extends Exception
Methods
static CannotCastEnum
create(string $type, mixed $value, DataProperty $property)
Create an exception for an invalid backed-enum value.
static string
describe(mixed $value)
Describe a value without triggering object string conversion.
Details
at line 17
static CannotCastEnum
create(string $type, mixed $value, DataProperty $property)
Create an exception for an invalid backed-enum value.
at line 28
static protected string
describe(mixed $value)
Describe a value without triggering object string conversion.