1
0
Fork 0

Do not show error that plugins have been disabled when they are already disabled (#11803)

pull/11688/head
Kuba Werłos 2024-02-07 09:32:55 +01:00 committed by GitHub
parent 9a656854ad
commit 7745d56c14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ class Application extends BaseApplication
$this->hasPluginCommands = true; $this->hasPluginCommands = true;
} }
if ($isNonAllowedRoot && !$io->isInteractive()) { if (!$this->disablePluginsByDefault && $isNonAllowedRoot && !$io->isInteractive()) {
$io->writeError('<error>Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.</error>'); $io->writeError('<error>Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.</error>');
$this->disablePluginsByDefault = true; $this->disablePluginsByDefault = true;
} }