plugin
plugin copied to clipboard
[Bug]: incorrect void return type for dispatch method
Bug description
Since recently it has become possible to generate auto-complete helpers for the dispatch method for classes using Laravel's Dispatchable trait. However, right now the return type for the method is generated as void, but it actually returns a \Illuminate\Foundation\Bus\PendingDispatch class which allows you to customize the dispatch further. Is it possible to update the return type in the _ide_helper_dispatches.php file?
Plugin version
5.7.3.221
Operating system
MacOS
Steps to reproduce
- Create a Job class which uses the
Dispatchabletrait - Generate the helper code
- Check the
_ide_helper_dispatches.phpfile - The
dispatchmethod is shown having avoidreturn type
Relevant log output
No response
For me is the same issue.
I use macOS Monterey and the latest plugin version 5.7.3.221
Code work fine (I'm developing with tests) and the test asserts my code sends four jobs dispatched with delay XXXXX.

This will be fixed. Thanks.
Fixed in the 6.1 release. Thanks.