1
0
Fork 0

Enable new phpstan option

pull/11962/merge
Jordi Boggiano 2024-05-27 17:11:31 +02:00
parent 09e616fa1d
commit f83b6b1026
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
3 changed files with 9 additions and 0 deletions

View File

@ -21,6 +21,7 @@ parameters:
reportUnmatchedIgnoredErrors: false
treatPhpDocTypesAsCertain: false
reportPossiblyNonexistentConstantArrayOffset: true
ignoreErrors:
# unused parameters

View File

@ -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

View File

@ -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);
}
}