From 2bc4ab6e683398d8c98d28fb7f3e91887658834c Mon Sep 17 00:00:00 2001 From: crynobone Date: Fri, 25 Aug 2017 18:03:18 +0800 Subject: [PATCH] Use ?: instead of ?? Signed-off-by: crynobone --- Console/Migrations/Packages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Console/Migrations/Packages.php b/Console/Migrations/Packages.php index 459b1d8..e1d43ea 100644 --- a/Console/Migrations/Packages.php +++ b/Console/Migrations/Packages.php @@ -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();