Skip to content

Commit

Permalink
fix bug with invokables
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 6, 2018
1 parent 86e1f98 commit eaac77b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Console/Scheduling/CallbackEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ public function run(Container $container)
parent::callBeforeCallbacks($container);

try {
$response = $container->call($this->callback, $this->parameters);
$response = is_object($this->callback)
? $container->call([$this->callback, '__invoke'], $this->parameters)
: $container->call($this->callback, $this->parameters);
} finally {
$this->removeMutex();

Expand Down

0 comments on commit eaac77b

Please sign in to comment.