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.

Parameters

string $type
mixed $value
DataProperty $property

Return Value

CannotCastEnum

at line 28
static protected string describe(mixed $value)

Describe a value without triggering object string conversion.

Parameters

mixed $value

Return Value

string