1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Fix a few phpstan errors and add a php8+ baseline for the rest

This commit is contained in:
Jordi Boggiano 2022-01-01 14:39:32 +01:00
parent a4a2b6da87
commit 0b3adc84da
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
12 changed files with 8916 additions and 9 deletions

View file

@ -453,6 +453,9 @@ class InstallerTest extends TestCase
$application->setAutoExit(false);
$appOutput = fopen('php://memory', 'w+');
if (false === $appOutput) {
self::fail('Failed to open memory stream');
}
$input = new StringInput($run.' -vvv');
$input->setInteractive(false);
$result = $application->run($input, new StreamOutput($appOutput));
@ -555,7 +558,7 @@ class InstallerTest extends TestCase
if (!empty($testData['LOCK'])) {
$lock = JsonFile::parseJson($testData['LOCK']);
if (!isset($lock['hash'])) {
$lock['hash'] = md5(json_encode($composer));
$lock['hash'] = md5(JsonFile::encode($composer, 0));
}
}
if (!empty($testData['INSTALLED'])) {