Skip to content

Commit 5d120d7

Browse files
Apply suggested fix to src/Console/Command/SyncCommand.php from Copilot Autofix
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 42ab3a0 commit 5d120d7

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/Console/Command/SyncCommand.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
124124
private function queueDevToolsCommand(array $arguments, bool $detached = false): void
125125
{
126126
$processBuilder = $this->processBuilder;
127+
$arguments = array_filter($arguments, static fn (?string $arg): bool => $arg !== null);
127128

128129
foreach ($arguments as $argument) {
129-
if ($argument === null) {
130-
continue;
131-
}
132-
133130
$processBuilder = $processBuilder->withArgument($argument);
134131
}
135132

0 commit comments

Comments
 (0)