UnexpectedTypeException

class UnexpectedTypeException extends RuntimeException

Thrown when a value does not match an expected type.

Methods

__construct(mixed $value, PropertyPathInterface $path, int $pathIndex)

Details

__construct(mixed $value, PropertyPathInterface $path, int $pathIndex)

Parameters

mixed $value The unexpected value found while traversing property path
PropertyPathInterface $path The property path
int $pathIndex The property path index when the unexpected value was found