Skip to content

Fix type hinting for prompt function#141

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

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

Conversation

@valera-seregin
Copy link
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.

@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants