Skip to content

Commit 36fe6f8

Browse files
author
akos
committed
add casting to pass phpstan
1 parent 2ee24ec commit 36fe6f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Domain/Insights/Composer/ComposerMustBeValid.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private function process(): void
4949
$validator = new ConfigValidator(new NullIO());
5050

5151
if ($this->isComposerV2()) {
52-
[$errors, $publishErrors, $warnings] = $validator->validate(ComposerFinder::getPath($this->collector), ValidatingArrayLoader::CHECK_ALL, $this->config['composerVersionCheck'] ?? ConfigValidator::CHECK_VERSION);
52+
[$errors, $publishErrors, $warnings] = $validator->validate(ComposerFinder::getPath($this->collector), ValidatingArrayLoader::CHECK_ALL, (int) ($this->config['composerVersionCheck'] ?? ConfigValidator::CHECK_VERSION));
5353
} else {
5454
[$errors, $publishErrors, $warnings] = $validator->validate(ComposerFinder::getPath($this->collector), ValidatingArrayLoader::CHECK_ALL);
5555
}

0 commit comments

Comments
 (0)