Documentation

InvalidArgumentException extends InvalidArgumentException
in package
implements Exception

Interfaces, Classes, Traits and Enums

Exception

Table of Contents

invalidType()  : self
Thrown when an argument or option has an invalid type.

Methods

invalidType()

Thrown when an argument or option has an invalid type.

public static invalidType(string $name, mixed $value, string|array<string|int, string> $expectedType) : self
Parameters
$name : string

Name of the argument or option

$value : mixed

Actual value (used to derive the type)

$expectedType : string|array<string|int, string>

Expected type

Return values
self

Search results