Skip to content

Commit

Permalink
Fix failiing test
Browse files Browse the repository at this point in the history
Signed-off-by: Kamil Tekiela <[email protected]>
  • Loading branch information
kamil-tekiela committed Jan 6, 2024
1 parent 5a06dcb commit e965e09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 0 additions & 2 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1026,8 +1026,6 @@
<code>$idx</code>
</MixedArgumentTypeCoercion>
<PossiblyFalseArgument>
<code>$params</code>
<code>$params</code>
<code><![CDATA[$params['c']]]></code>
<code><![CDATA[$params['q']]]></code>
<code><![CDATA[$params['q']]]></code>
Expand Down
8 changes: 8 additions & 0 deletions src/Utils/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ public function parseLint(): array|false
'ansi',
];
$params = $this->getopt('hq:c:a', $longopts);
if ($params === false) {
return false;
}

$this->mergeLongOpts($params, $longopts);

return $params;
Expand Down Expand Up @@ -221,6 +225,10 @@ public function parseTokenize(): array|false
'ansi',
];
$params = $this->getopt('hq:a', $longopts);
if ($params === false) {
return false;
}

$this->mergeLongOpts($params, $longopts);

return $params;
Expand Down

0 comments on commit e965e09

Please sign in to comment.