From 598c1c75732b59d37e7a9de9bc16036a0f2a0107 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 16 Aug 2022 11:19:20 +0200 Subject: [PATCH] Fix phpstan error --- src/Composer/Command/BaseCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/BaseCommand.php b/src/Composer/Command/BaseCommand.php index 2438614f8..00714d7a4 100644 --- a/src/Composer/Command/BaseCommand.php +++ b/src/Composer/Command/BaseCommand.php @@ -166,7 +166,7 @@ abstract class BaseCommand extends Command } } if (true == $input->hasOption('update-no-dev')) { - if (!$input->getOption('update-no-dev') && true == Platform::getEnv('COMPOSER_NO_DEV')) { + if (true !== $input->getOption('update-no-dev') && true == Platform::getEnv('COMPOSER_NO_DEV')) { $input->setOption('update-no-dev', true); } }