From 7eee6c35ea5c777f0c468f699a28723811131117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= <5175937+theofidry@users.noreply.github.com> Date: Fri, 24 Nov 2023 17:45:06 +0100 Subject: [PATCH] fix: Correctly interpret the parallelization option (#1205) Fixes the error introduced in #1190. --- src/Console/Command/Compile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Console/Command/Compile.php b/src/Console/Command/Compile.php index 11c817eb9..33d231208 100644 --- a/src/Console/Command/Compile.php +++ b/src/Console/Command/Compile.php @@ -191,9 +191,9 @@ public function execute(IO $io): int PhpSettingsChecker::check($io); - $enableParallelization = $io->getTypedOption(self::NO_PARALLEL_PROCESSING_OPTION)->asBoolean(); + $disableParallelization = $io->getTypedOption(self::NO_PARALLEL_PROCESSING_OPTION)->asBoolean(); - if ($enableParallelization) { + if ($disableParallelization) { $io->writeln( '[debug] Disabled parallel processing', OutputInterface::VERBOSITY_DEBUG, @@ -224,7 +224,7 @@ public function execute(IO $io): int $restoreLimit = OpenFileDescriptorLimiter::bumpLimit(2048, $io); try { - $box = $this->createPhar($config, $logger, $io, $debug, $enableParallelization); + $box = $this->createPhar($config, $logger, $io, !$disableParallelization, $debug); } finally { $restoreLimit(); }