Skip to content

WEB-4344: feat: Inject EventCollection into runAction in `Machine… #33

WEB-4344: feat: Inject EventCollection into runAction in `Machine…

WEB-4344: feat: Inject EventCollection into runAction in `Machine… #33

Triggered via push December 4, 2023 19:45
Status Success
Total duration 33s
Artifacts

larastan.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
larastan: 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
larastan: database/factories/MachineEventFactory.php#L31
Parameter $array of function implode expects array|null, array|string given.
larastan: database/factories/MachineEventFactory.php#L39
Parameter $array of function implode expects array|null, array|string given.
larastan: 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.
larastan: 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.
larastan: src/Actor/Machine.php#L474
Trying to invoke (callable(): mixed)|object but it might not be a callable.
larastan: 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.
larastan: 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.
larastan: src/Actor/State.php#L136
Part $currentEventBehavior->type (Spatie\LaravelData\Optional|string) of encapsed string cannot be cast to string.
larastan: src/Behavior/EventBehavior.php#L41
Attribute class Spatie\LaravelData\Attributes\WithoutValidation does not have the parameter target.