Skip to content

Commit 38fd982

Browse files
Apply suggested fix to src/Console/Command/SyncCommand.php from Copilot Autofix (#95)
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 1d7c318 commit 38fd982

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Console/Command/SyncCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,15 @@ protected function execute(InputInterface $input, OutputInterface $output): int
118118
/**
119119
* Adds a dev-tools command invocation to the process queue.
120120
*
121-
* @param list<string> $arguments the dev-tools command arguments
121+
* @param list<string|null> $arguments the dev-tools command arguments
122122
* @param bool $detached whether the command MAY run detached from subsequent queue entries
123123
*/
124124
private function queueDevToolsCommand(array $arguments, bool $detached = false): void
125125
{
126126
$processBuilder = $this->processBuilder;
127127

128128
foreach ($arguments as $argument) {
129-
if (empty($argument)) {
129+
if ($argument === null) {
130130
continue;
131131
}
132132

0 commit comments

Comments
 (0)