Browse Source
Check if realpath() returns false
realpath() returns false in case the directory does not exist. Found it while preparing strict_typing for PHP7+.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
tags/v14.0.0beta1
Morris Jobke
6 years ago
No account linked to committer's email address
|
|
@@ -186,7 +186,7 @@ class MigrationService { |
|
|
|
|
|
|
|
protected function findMigrations() { |
|
|
|
$directory = realpath($this->migrationsPath); |
|
|
|
if (!file_exists($directory) || !is_dir($directory)) { |
|
|
|
if ($directory === false || !file_exists($directory) || !is_dir($directory)) { |
|
|
|
return []; |
|
|
|
} |
|
|
|
|