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:
parent
a4a2b6da87
commit
0b3adc84da
12 changed files with 8916 additions and 9 deletions
|
@ -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'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue