InvalidTypeException extends InvalidArgumentException
FinalYes
Methods
- __construct() : mixed
- type() : self
- value() : self
Methods
__construct()
public
__construct(string $message[, Throwable|null $previous = null ]) : mixed
Parameters
- $message : string
- $previous : Throwable|null = null
type()
public
static type(Type<string|int, mixed> $givenType, Type<string|int, mixed> $expectedType) : self
Parameters
Return values
selfvalue()
public
static value(mixed $value, Type<string|int, mixed> $expectedType) : self
Parameters
- $value : mixed
- $expectedType : Type<string|int, mixed>