From 30c9a3f7a34c693c583dab3c6b5121b40c16b5ce Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Tue, 7 Apr 2026 17:11:27 +0800 Subject: [PATCH] phpstan --- src/StaticPHP/Config/ArtifactConfig.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/StaticPHP/Config/ArtifactConfig.php b/src/StaticPHP/Config/ArtifactConfig.php index db0af288..8462091d 100644 --- a/src/StaticPHP/Config/ArtifactConfig.php +++ b/src/StaticPHP/Config/ArtifactConfig.php @@ -55,9 +55,7 @@ class ArtifactConfig if (!is_array($data)) { throw new WrongUsageException("Invalid JSON format in artifact config file: {$file}"); } - if (is_array($data)) { - ConfigCache::set($content, $data); - } + ConfigCache::set($content, $data); } ConfigValidator::validateAndLintArtifacts(basename($file), $data); foreach ($data as $artifact_name => $config) {