Skip to content

Fix type hinting for prompt function - #141

Merged
swissspidy merged 2 commits into
wp-cli:masterfrom
valera-seregin:fix-default-value-in-prompt
Nov 3, 2023
Merged

Fix type hinting for prompt function#141
swissspidy merged 2 commits into
wp-cli:masterfrom
valera-seregin:fix-default-value-in-prompt

Conversation

@valera-seregin

Copy link
Copy Markdown
Contributor

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.

Comment thread lib/cli/cli.php Outdated
@swissspidy
swissspidy merged commit 79e1610 into wp-cli:master Nov 3, 2023
@swissspidy swissspidy added this to the 0.11.22 milestone Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment