InvalidTypeException
extends InvalidArgumentException
in package
Thrown when a type of given value does not match an expected type.
Tags
Table of Contents
Properties
- $actualType : string
- $expectedType : string
- $propertyPath : string
Methods
- __construct() : mixed
Properties
$actualType read-only
public
string
$actualType
$expectedType read-only
public
string
$expectedType
$propertyPath read-only
public
string
$propertyPath
Methods
__construct()
public
__construct(string $expectedType, string $actualType, string $propertyPath[, Throwable|null $previous = null ]) : mixed
Parameters
- $expectedType : string
- $actualType : string
- $propertyPath : string
- $previous : Throwable|null = null