diff --git a/src/Illuminate/Console/Scheduling/Event.php b/src/Illuminate/Console/Scheduling/Event.php index 944728361a7f..1d5e35b63801 100644 --- a/src/Illuminate/Console/Scheduling/Event.php +++ b/src/Illuminate/Console/Scheduling/Event.php @@ -130,10 +130,10 @@ public function run(Container $container) return; } - $exitCode = $this->start($container); + $this->exitCode = $this->start($container); if (! $this->runInBackground) { - $this->finish($container, $exitCode); + $this->finish($container, $this->exitCode); } }