Rule DispatchNonShouldQueueToDispatchSyncRector will wrongly convert `dispatch` to `dispatch_sync` on Closures
Closed this issue · 0 comments
j3j5 commented
Laravel supports queuing closures using dispatch()
. Currently the rule DispatchNonShouldQueueToDispatchSyncRector
would wrongly convert those dispatch
calls to dispatch_sync
.
Example:
- dispatch(function () {
+ dispatch_sync(function () {
info('test');
});
#206 should fix that.