From 89cf140e925d59717d222bcb6cf804b574d9f729 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Thu, 16 Nov 2023 13:17:28 +0100 Subject: [PATCH] fix: unknown return type The `mixed` pseudo type is only supported in PHP 8 or newer. https://php.watch/versions/8.0/mixed-type --- src/Classes/Cli/Cli.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Classes/Cli/Cli.php b/src/Classes/Cli/Cli.php index 5e7ee453..cd135982 100644 --- a/src/Classes/Cli/Cli.php +++ b/src/Classes/Cli/Cli.php @@ -96,11 +96,9 @@ public function hasOption(string $option): bool * * @param string $option * - * @return mixed (PHP 7.4) - * @return string|bool (PHP 8.0) - * @return string|false (PHP 8.1) + * @return string */ - public function getOption(string $option): mixed + public function getOption(string $option): string { global $argv; @@ -114,6 +112,6 @@ public function getOption(string $option): mixed } } - return false; + return ''; } }