Call to an undefined static method Illuminate\Support\Facades\Queue::after()
It is possible to workaround it using app('queue')->after() instead of Queue::after(), but it would be nice to have the documentation example passing the static code analysis.
All the other usages of Facades in the application pass the static code analysis (eg, Storage::disk()) - making me believe this is a "fixable" issue.
Description:
Code is available in documentation:
When running phpstan level 3, it complains:
Call to an undefined static method Illuminate\Support\Facades\Queue::after()
It is possible to workaround it using
app('queue')->after()
instead ofQueue::after()
, but it would be nice to have the documentation example passing the static code analysis.All the other usages of Facades in the application pass the static code analysis (eg,
Storage::disk()
) - making me believe this is a "fixable" issue.Steps To Reproduce:
Code is available in documentation:
To install PHPStan:
composer require --dev phpstan/phpstan
This is the script in
composer.json
:To run it:
composer run phpstan