public
|
__construct(string $expectedType, int $argNum, string $message = null, int $code = 0, Exception $exception = null)
Create a new InvalidArgumentException, an exception thrown if an argument is not of the expected type.
Create a new InvalidArgumentException, an exception thrown if an argument is not of the expected type.
Parameters
$expectedType |
[required] The type expected
|
$argNum |
[required] The argument number that failed the type check. Note: $argNum is zero
based, that means if you wish to refer to the first argument, you
should pass 0 and not 1.
|
$message |
[optional] Exception message
|
$code |
[optional] Code of the exception
|
$exception |
[optional] Previous Exception
|
Overrides
|
#
|