Skip to content

Commit bd7677e

Browse files
committed
Add more comments, refs composer#12445
1 parent 58e667f commit bd7677e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Composer/Test/InstallerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ private function doTestIntegration(string $file, string $message, ?string $condi
372372

373373
return $installer->run();
374374
});
375+
// Compatibility layer for symfony/console <7.4
375376
method_exists($application, 'addCommand') ? $application->addCommand($install) : $application->add($install);
376377

377378
$update = new Command('update');
@@ -420,6 +421,7 @@ private function doTestIntegration(string $file, string $message, ?string $condi
420421

421422
return $installer->run();
422423
});
424+
// Compatibility layer for symfony/console <7.4
423425
method_exists($application, 'addCommand') ? $application->addCommand($update) : $application->add($update);
424426

425427
if (!Preg::isMatch('{^(install|update)\b}', $run)) {

0 commit comments

Comments
 (0)