Skip to content

Commit

Permalink
fix: unknown return type
Browse files Browse the repository at this point in the history
The `mixed` pseudo type is only supported in PHP 8 or newer.

https://php.watch/versions/8.0/mixed-type
  • Loading branch information
grandeljay committed Nov 16, 2023
1 parent 91ae1e3 commit 89cf140
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Classes/Cli/Cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -114,6 +112,6 @@ public function getOption(string $option): mixed
}
}

return false;
return '';
}
}

0 comments on commit 89cf140

Please sign in to comment.