Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into fix/phpbench
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Nov 24, 2023
2 parents bb34fd5 + 7eee6c3 commit 14317fb
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 14317fb

Please sign in to comment.