Skip to content

Latest commit

 

History

History
50 lines (21 loc) · 781 Bytes

InvalidArgumentException.md

File metadata and controls

50 lines (21 loc) · 781 Bytes

InvalidArgumentException

Methods

invalidType

Thrown when an argument or option has an invalid type.

public static invalidType(string $name, mixed $value, string|string[] $expectedType): self
  • This method is static.

Parameters:

Parameter Type Description
$name string Name of the argument or option
$value mixed Actual value (used to derive the type)
$expectedType string|string[] Expected type