Enable new phpstan option
parent
09e616fa1d
commit
f83b6b1026
|
@ -21,6 +21,7 @@ parameters:
|
|||
|
||||
reportUnmatchedIgnoredErrors: false
|
||||
treatPhpDocTypesAsCertain: false
|
||||
reportPossiblyNonexistentConstantArrayOffset: true
|
||||
|
||||
ignoreErrors:
|
||||
# unused parameters
|
||||
|
|
|
@ -402,6 +402,8 @@ EOT
|
|||
|
||||
/**
|
||||
* @param array<string, string> $requirements
|
||||
* @param 'require'|'require-dev' $requireKey
|
||||
* @param 'require'|'require-dev' $removeKey
|
||||
* @throws \Exception
|
||||
*/
|
||||
private function doUpdate(InputInterface $input, OutputInterface $output, IOInterface $io, array $requirements, string $requireKey, string $removeKey): int
|
||||
|
|
|
@ -78,6 +78,9 @@ class LicensesCommandTest extends TestCase
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!isset($expected[$i])) {
|
||||
$this->fail('Got more output lines than expected');
|
||||
}
|
||||
$this->assertMatchesRegularExpression("/" . implode("\s+", $expected[$i]) . "/", $line);
|
||||
}
|
||||
}
|
||||
|
@ -108,6 +111,9 @@ class LicensesCommandTest extends TestCase
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!isset($expected[$i])) {
|
||||
$this->fail('Got more output lines than expected');
|
||||
}
|
||||
$this->assertMatchesRegularExpression("/" . implode("\s+", $expected[$i]) . "/", $line);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue