Skip to content

Commit dda83eb

Browse files
coisagithub-code-quality[bot]github-actions[bot]
authored
Potential fix for 1 code quality finding (#97)
* 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> * Update wiki submodule pointer for PR #97 --------- Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 42ab3a0 commit dda83eb

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

.github/wiki

Submodule wiki updated from b7e89a8 to c1a6da3

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)