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

Fix a bunch of type errors in SelfUpdateCommand, fixes #10696, closes #10704

This commit is contained in:
Jordi Boggiano 2022-04-06 21:35:26 +02:00
parent b03e9e414e
commit 106149d102
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
4 changed files with 51 additions and 31 deletions

View file

@ -548,7 +548,7 @@ class Application extends BaseApplication
new Command\ReinstallCommand(),
));
if (strpos(__FILE__, 'phar:') === 0) {
if (strpos(__FILE__, 'phar:') === 0 || '1' === Platform::getEnv('COMPOSER_TESTS_ARE_RUNNING')) {
$commands[] = new Command\SelfUpdateCommand();
}