Laravel Version
13.12.0
PHP Version
8.4
Database Driver & Version
No response
Description
While testing debounced jobs, I noticed that they seemed to be processed immediately when dispatched through Illuminate\Bus\Dispatcher, and correctly delayed when using the Dispatchable::dispatch method.
Taking a closer look, I can see that the latter returns an instance of PendingDispatch (and so does the dispatch() helper), but the former doesn't. This isn't documented as far as I can tell, and I would expect Illuminate\Bus\Dispatcher::dispatch to behave in a similar way.
Steps To Reproduce
Dispatch a job using either method and observe the difference.
Laravel Version
13.12.0
PHP Version
8.4
Database Driver & Version
No response
Description
While testing debounced jobs, I noticed that they seemed to be processed immediately when dispatched through
Illuminate\Bus\Dispatcher, and correctly delayed when using theDispatchable::dispatchmethod.Taking a closer look, I can see that the latter returns an instance of
PendingDispatch(and so does thedispatch()helper), but the former doesn't. This isn't documented as far as I can tell, and I would expectIlluminate\Bus\Dispatcher::dispatchto behave in a similar way.Steps To Reproduce
Dispatch a job using either method and observe the difference.