We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86e1f98 commit eaac77bCopy full SHA for eaac77b
src/Illuminate/Console/Scheduling/CallbackEvent.php
@@ -71,7 +71,9 @@ public function run(Container $container)
71
parent::callBeforeCallbacks($container);
72
73
try {
74
- $response = $container->call($this->callback, $this->parameters);
+ $response = is_object($this->callback)
75
+ ? $container->call([$this->callback, '__invoke'], $this->parameters)
76
+ : $container->call($this->callback, $this->parameters);
77
} finally {
78
$this->removeMutex();
79
0 commit comments