Closed gihan9a closed 3 years ago
We usually don't account for tools like psalm. If you think something is broken here feel free to PR something. Thanks.
Thanks for the quick reply.
I doubt it has lead to break lumen apps. That's why the listed issues can be found on GitHub. I found this in my first ever Laravel/Lumen project. I'll try to open PR.
Description:
When initializing
vimeo/psalm
package it complains thatIlluminate\Foundation\Bus\Dispatchable
Trait is missing. Hence it aborts.This error has reported in the following places. https://github.com/Maatwebsite/Laravel-Excel/issues/2347 https://github.com/Maatwebsite/Laravel-Excel/issues/2221 https://github.com/spatie/laravel-webhook-server/issues/3
As someone has suggested, jobs can be dispatched without
Dispatchable
in Lumen. Errors vanish after removing the following lines fromhttps://github.com/illuminate/queue/blob/master/CallQueuedClosure.php#L1-L16
. Since I don't know the internals I'm reporting this as an issue instead of a PRSteps To Reproduce:
composer create-project --prefer-dist laravel/lumen blog
cd blog
composer require --dev vimeo/psalm
./vendor/bin/psalm --init