mirror of
https://github.com/nextcloud/server.git
synced 2024-09-01 17:54:51 +02:00
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>
This commit is contained in:
parent
e4e39910f3
commit
1efde41333
@ -186,7 +186,7 @@ class MigrationService {
|
|||||||
|
|
||||||
protected function findMigrations() {
|
protected function findMigrations() {
|
||||||
$directory = realpath($this->migrationsPath);
|
$directory = realpath($this->migrationsPath);
|
||||||
if (!file_exists($directory) || !is_dir($directory)) {
|
if ($directory === false || !file_exists($directory) || !is_dir($directory)) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user