1
0
espelhamento de https://github.com/nextcloud/server.git sincronizado 2024-09-02 05:55:17 +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>
Esse commit está contido em:
Morris Jobke 2018-01-12 15:45:51 +01:00 commit de Roeland Jago Douma
commit 1efde41333
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados
ID da chave GPG: F941078878347C0C

Ver arquivo

@ -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 [];
}