analyse/laravel/unexpected-dispatch-arguments
In the analyse-essential preset and every stricter one. Report only. Runs when laravel is installed.
Configuration
[analyse.rules]
"laravel/unexpected-dispatch-arguments" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
CheckDispatchArgumentTypesCompatibleWithClassConstructorRule(phpstan-classes)larastan.events.noConstructor(larastan)larastan.jobs.noConstructor(larastan)