From 20bd638af72e5a456765e2133dbb05618ef069a1 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Mon, 4 Apr 2022 02:03:30 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20dynamic=20=EB=AA=A8=EB=93=9CGetConst?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EB=B0=94=EB=80=90=EA=B2=8C=20=EC=97=86?= =?UTF-8?q?=EC=9D=84=EB=95=8C=20=EB=B2=84=EA=B7=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/API/Global/GetConst.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwe/sammo/API/Global/GetConst.php b/hwe/sammo/API/Global/GetConst.php index 6154c581..b568905f 100644 --- a/hwe/sammo/API/Global/GetConst.php +++ b/hwe/sammo/API/Global/GetConst.php @@ -109,7 +109,7 @@ class GetConst extends \sammo\BaseAPI public function tryCache(): ?APICacheResult { if (is_subclass_of('\\sammo\\VersionGit', '\\sammo\VersionGitDynamic')) { - return new APICacheResult(TimeUtil::secondsToDateTime($this->findLastModified(), true, true)); + return new APICacheResult(TimeUtil::secondsToDateTime($this->findLastModified()??\time(), true, true)); } return new APICacheResult(null, $this->getCacheKey());