Skip to content

Commit

Permalink
Use ?: instead of ??
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Aug 25, 2017
1 parent 4637b6b commit 8abaefb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Console/Migrations/Packages.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function setPackagePath($packagePath)
*/
protected function getPackageMigrationPaths($package)
{
return collect($this->option('path') ?? 'resources/migrations')
return collect($this->option('path') ?: 'resources/migrations')
->map(function ($path) use ($package) {
return $this->packagePath.'/'.$package.'/'.$path;
})->all();
Expand Down

0 comments on commit 8abaefb

Please sign in to comment.