Skip to content

Commit 30c9a3f

Browse files
committed
phpstan
1 parent baa21d6 commit 30c9a3f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/StaticPHP/Config/ArtifactConfig.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ public static function loadFromFile(string $file, string $registry_name): string
5555
if (!is_array($data)) {
5656
throw new WrongUsageException("Invalid JSON format in artifact config file: {$file}");
5757
}
58-
if (is_array($data)) {
59-
ConfigCache::set($content, $data);
60-
}
58+
ConfigCache::set($content, $data);
6159
}
6260
ConfigValidator::validateAndLintArtifacts(basename($file), $data);
6361
foreach ($data as $artifact_name => $config) {

0 commit comments

Comments
 (0)