Closed j3j5 closed 5 months ago
Laravel supports queuing closures using dispatch(). Currently the rule DispatchNonShouldQueueToDispatchSyncRector would wrongly convert those dispatch calls to dispatch_sync .
dispatch()
DispatchNonShouldQueueToDispatchSyncRector
dispatch
dispatch_sync
Example:
- dispatch(function () { + dispatch_sync(function () { info('test'); });
Laravel supports queuing closures using
dispatch()
. Currently the ruleDispatchNonShouldQueueToDispatchSyncRector
would wrongly convert thosedispatch
calls todispatch_sync
.Example:
206 should fix that.