Skip to content

Commit

Permalink
fix: Correctly interpret the parallelization option (#1205)
Browse files Browse the repository at this point in the history
Fixes the error introduced in #1190.
  • Loading branch information
theofidry authored Nov 24, 2023
1 parent 8e1556a commit 7eee6c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Console/Command/Compile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
'<info>[debug] Disabled parallel processing</info>',
OutputInterface::VERBOSITY_DEBUG,
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 7eee6c3

Please sign in to comment.