package |
Default |
---|
__construct(mixed $actual, string $expectedType, integer $code, \Exception $previous = null)
mixed
The thing that was given. For example: $myVar
string
What it was expected to be. For example: 'array'
integer
[optional] The Exception code.
\Exception
[optional] The previous exception used for the exception chaining. Since 5.3.0