Skip to content

Commit 6c9a60f

Browse files
Fix possible parsing issue
1 parent 8de4d2c commit 6c9a60f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Runner/Action/Cli/Command/Formatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ private function parseOptions(array $raw): array
216216
foreach ($raw as $rawOption) {
217217
$matches = [];
218218
if (preg_match('#^([a-z_\-]+):(.*)?$#i', $rawOption, $matches)) {
219-
$options[strtolower($matches[1])] = $matches[2];
219+
$options[strtolower($matches[1])] = $matches[2] ?? '';
220220
}
221221
}
222222
return $options;

0 commit comments

Comments
 (0)