WEB-4344: feat: Inject EventCollection
into runAction
in `Machine…
#33
Annotations
10 errors
Run PHPStan:
database/factories/MachineEventFactory.php#L19
Class Tarfinlabs\EventMachine\Database\Factories\MachineEventFactory extends generic class Illuminate\Database\Eloquent\Factories\Factory but does not specify its types: TModel
|
Run PHPStan:
database/factories/MachineEventFactory.php#L31
Parameter $array of function implode expects array|null, array|string given.
|
Run PHPStan:
database/factories/MachineEventFactory.php#L39
Parameter $array of function implode expects array|null, array|string given.
|
Run PHPStan:
src/Actor/Machine.php#L268
Parameter $history of class Tarfinlabs\EventMachine\Actor\State constructor expects Tarfinlabs\EventMachine\EventCollection|null, Illuminate\Database\Eloquent\Collection<int, Tarfinlabs\EventMachine\Models\MachineEvent> given.
|
Run PHPStan:
src/Actor/Machine.php#L372
Parameter #1 $callback of method Illuminate\Support\Collection<(int|string),mixed>::filter() expects (callable(mixed, int|string): bool)|null, Closure(Tarfinlabs\EventMachine\Models\MachineEvent): (0|1|false) given.
|
Run PHPStan:
src/Actor/Machine.php#L474
Trying to invoke (callable(): mixed)|object but it might not be a callable.
|
Run PHPStan:
src/Actor/State.php#L41
PHPDoc tag @param for parameter $history with type Illuminate\Support\Collection|null is not subtype of native type Tarfinlabs\EventMachine\EventCollection|null.
|
Run PHPStan:
src/Actor/State.php#L45
PHPDoc type for property Tarfinlabs\EventMachine\Actor\State::$history with type Illuminate\Support\Collection|null is not subtype of native type Tarfinlabs\EventMachine\EventCollection|null.
|
Run PHPStan:
src/Actor/State.php#L136
Part $currentEventBehavior->type (Spatie\LaravelData\Optional|string) of encapsed string cannot be cast to string.
|
Run PHPStan:
src/Behavior/EventBehavior.php#L41
Attribute class Spatie\LaravelData\Attributes\WithoutValidation does not have the parameter target.
|
The logs for this run have expired and are no longer available.
Loading