From 1457406f4933b9a5ba9d2592bc98ed56695ff5fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 18 Mar 2021 16:43:13 +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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/System/Snowflake.php b/System/Snowflake.php index a10f973f..a08c70f2 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -39,8 +39,8 @@ class Snowflake public static Container $container; - /** @var Application */ - private static Application $service; + /** @var ?Application */ + private static ?Application $service = null; /** @@ -54,9 +54,9 @@ class Snowflake } /** - * @return mixed + * @return Application|null */ - public static function app(): Application + public static function app(): ?Application { return static::$service; }