Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions src/Input/ChildCommandFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@
use Symfony\Component\Console\Input\InputDefinition;
use Symfony\Component\Console\Input\InputInterface;
use Webmozart\Assert\Assert;
use function array_diff;
use function array_filter;
use function array_keys;
use function array_map;
use function count;
use function Safe\getcwd;
use function sprintf;

Expand Down Expand Up @@ -69,19 +72,22 @@ private function getForwardedOptions(InputInterface $input): array
// Forward all the options except for "processes" to the children
// this way the children can inherit the options such as env
// or no-debug.
return InputOptionsSerializer::serialize(
$this->commandDefinition,
$input,
$forwardedOptionNames = array_diff(
array_keys($input->getRawOptions()),
ParallelizationInput::OPTIONS,
);

return count($forwardedOptionNames) === 0
? []
: $input->unparse($forwardedOptionNames);
}

/**
* @return list<string|bool|int|float|null|array<string|bool|int|float|null>>
*/
private static function getArguments(InputInterface $input): array
{
$arguments = RawInput::getRawArguments($input);
$arguments = $input->getRawArguments();

// Remove the item: we do not want it to be passed to child processes
// ever.
Expand Down
102 changes: 0 additions & 102 deletions src/Input/InputOptionsSerializer.php

This file was deleted.

99 changes: 0 additions & 99 deletions src/Input/RawInput.php

This file was deleted.

Loading