| package |
Default |
|---|
__construct(mixed $actual, string $expectedType, integer $code, \Exception $previous = null)
mixedThe thing that was given. For example: $myVar
stringWhat 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