NamespaceLoader fix

This commit is contained in:
Taras Machyshyn
2019-04-03 11:49:59 +03:00
parent 29bf2c2e40
commit 5dc0cfb666
@@ -195,6 +195,9 @@ class NamespaceLoader
if (file_exists($this->vendorNamespacesCacheFile) && $this->getConfig()->get('useCache')) {
$this->vendorNamespaces = $this->getFileManager()->getPhpContents($this->vendorNamespacesCacheFile);
if (!is_array($this->vendorNamespaces)) {
$this->vendorNamespaces = [];
}
}
}