We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ee24ec commit 36fe6f8Copy full SHA for 36fe6f8
src/Domain/Insights/Composer/ComposerMustBeValid.php
@@ -49,7 +49,7 @@ private function process(): void
49
$validator = new ConfigValidator(new NullIO());
50
51
if ($this->isComposerV2()) {
52
- [$errors, $publishErrors, $warnings] = $validator->validate(ComposerFinder::getPath($this->collector), ValidatingArrayLoader::CHECK_ALL, $this->config['composerVersionCheck'] ?? ConfigValidator::CHECK_VERSION);
+ [$errors, $publishErrors, $warnings] = $validator->validate(ComposerFinder::getPath($this->collector), ValidatingArrayLoader::CHECK_ALL, (int) ($this->config['composerVersionCheck'] ?? ConfigValidator::CHECK_VERSION));
53
} else {
54
[$errors, $publishErrors, $warnings] = $validator->validate(ComposerFinder::getPath($this->collector), ValidatingArrayLoader::CHECK_ALL);
55
}
0 commit comments