Flex: Fixed a bug in new findPrefixedKeysFromFilesystem() method

This commit is contained in:
Matias Griese
2018-11-14 16:31:06 +02:00
parent 0743816822
commit de898b610d

View File

@@ -398,7 +398,11 @@ class FolderStorage extends AbstractFilesystemStorage
$list[] = $this->findKeysFromFilesystem($filename);
}
return array_merge(...$list);
if (!$list) {
return [];
}
return \count($list) > 1 ? array_merge(...$list) : $list[0];
}
/**