Skip to content

Commit

Permalink
return 1 when migrations table not found (#30321)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerguslejko authored and taylorotwell committed Oct 18, 2019
1 parent f61b787 commit 19c2a10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Database/Console/Migrations/StatusCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ public function handle()
$this->migrator->setConnection($this->option('database'));

if (! $this->migrator->repositoryExists()) {
return $this->error('Migration table not found.');
$this->error('Migration table not found.');

return 1;

This comment has been minimized.

Copy link
@licxisky

licxisky Oct 20, 2019

The return value of this function is void. Why not return null?

$this->error('Migration table not found.');
return;
}

$ran = $this->migrator->getRepository()->getRan();
Expand Down

0 comments on commit 19c2a10

Please sign in to comment.