Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Jul 7, 2017
1 parent 3e2e681 commit a2910f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Events/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ protected function createQueuedHandlerCallable($class, $method)
*/
protected function mayQueueHandler($class, $arguments)
{
return ! method_exists($class, 'shouldPushToQueue') ? false
return ! method_exists($class, 'shouldPushToQueue') ? true
: (new ReflectionClass($class))->newInstanceWithoutConstructor()
->shouldPushToQueue($arguments[0]);
}
Expand Down

0 comments on commit a2910f2

Please sign in to comment.