mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 09:25:35 +08:00
phpstan
This commit is contained in:
@@ -55,9 +55,7 @@ class ArtifactConfig
|
|||||||
if (!is_array($data)) {
|
if (!is_array($data)) {
|
||||||
throw new WrongUsageException("Invalid JSON format in artifact config file: {$file}");
|
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);
|
ConfigValidator::validateAndLintArtifacts(basename($file), $data);
|
||||||
foreach ($data as $artifact_name => $config) {
|
foreach ($data as $artifact_name => $config) {
|
||||||
|
|||||||
Reference in New Issue
Block a user