From 33be4b1fea3e3130c7afe899860fa6c11dc7743a Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Sat, 6 Jan 2024 23:29:11 +0100 Subject: [PATCH] Fix failiing test Signed-off-by: Kamil Tekiela --- src/Utils/CLI.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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;