This commit is contained in:
2020-09-15 20:12:50 +08:00
parent f6f93439f9
commit 3babbaf394
+1 -2
View File
@@ -354,8 +354,7 @@ class Snowflake
}
$content = json_decode(file_get_contents(__DIR__ . '/../composer.json'));
$content = json_decode(file_get_contents(__DIR__ . '/../composer.json'), true);
if (isset($content['autoload']) && isset($content['autoload']['psr-4'])) {
$psr4 = $content['autoload']['psr-4'];
foreach ($psr4 as $namespace => $dirname) {