diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 855cfd3e..0dfd28bc 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1026,8 +1026,6 @@ $idx - $params - $params diff --git a/src/Utils/CLI.php b/src/Utils/CLI.php index c4f9c72c..a03b518e 100644 --- a/src/Utils/CLI.php +++ b/src/Utils/CLI.php @@ -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; @@ -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;