-
-
Notifications
You must be signed in to change notification settings - Fork 0
InvalidArgumentException
github-actions edited this page Apr 6, 2026
·
1 revision
Represent invalid arguments detected by the event dispatcher package.
- Full name:
\FastForward\EventDispatcher\Exception\InvalidArgumentException - Parent class:
InvalidArgumentException - This class is marked as final and can't be subclassed
- This class is a Final class
Create an exception for an array that was expected to be a list.
public static forExpectedArrayList(array<array-key,mixed> $array): self- This method is static. Parameters:
| Parameter | Type | Description |
|---|---|---|
$array |
array<array-key,mixed> | array that failed the list assertion |
Return Value:
exception describing the invalid array shape
Create an exception for a subscriber class that does not implement the required contract.
public static forInvalidEventSubscriber(string $eventSubscriber, string $expectedInterface): self- This method is static. Parameters:
| Parameter | Type | Description |
|---|---|---|
$eventSubscriber |
string | subscriber class name |
$expectedInterface |
string | required subscriber interface |
Return Value:
exception describing the invalid subscriber class