php-cli-tools icon indicating copy to clipboard operation
php-cli-tools copied to clipboard

Fix type hinting for prompt function

Open valeriySeregin opened this issue 5 years ago • 0 comments

I was confused by phpstan analyse output: "Parameter #2 $default of function cli\prompt expects string, false given." Soon I found out that problem is in type hinting for this function in lib/cli/cli.php. Hope my fix is helpful.

valeriySeregin avatar Jan 12 '21 12:01 valeriySeregin