diff --git a/src/Console/Command/Compile.php b/src/Console/Command/Compile.php index 4d3fb718d..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(); }