Skip to content

Commit 206f7a6

Browse files
committed
Fix failiing test
Signed-off-by: Kamil Tekiela <[email protected]>
1 parent 5a06dcb commit 206f7a6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Utils/CLI.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ public function parseLint(): array|false
149149
'ansi',
150150
];
151151
$params = $this->getopt('hq:c:a', $longopts);
152+
if ($params === false) {
153+
$params = [];
154+
}
155+
152156
$this->mergeLongOpts($params, $longopts);
153157

154158
return $params;
@@ -221,6 +225,10 @@ public function parseTokenize(): array|false
221225
'ansi',
222226
];
223227
$params = $this->getopt('hq:a', $longopts);
228+
if ($params === false) {
229+
$params = [];
230+
}
231+
224232
$this->mergeLongOpts($params, $longopts);
225233

226234
return $params;

0 commit comments

Comments
 (0)