From 3babbaf394df9461ec15ca4b4cdec452b6b739d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 15 Sep 2020 20:12:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Snowflake.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/System/Snowflake.php b/System/Snowflake.php index 3139e3d9..a2a1f427 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -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) {