Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw exception when misusing error_to_string() #5405

Merged
merged 3 commits into from Jun 4, 2020

Conversation

vsamoletov
Copy link
Contributor

@vsamoletov vsamoletov commented Jun 4, 2020

Fixes #5356

@vsamoletov vsamoletov requested a review from a team as a code owner Jun 4, 2020
tests/test-wp-cli.php Outdated Show resolved Hide resolved
@vsamoletov
Copy link
Contributor Author

I have to add @throws to PHPDoc probably. Please let me know.

Co-authored-by: Pascal Birchler <pascal.birchler@gmail.com>
@swissspidy swissspidy requested a review from a team Jun 4, 2020
@vsamoletov
Copy link
Contributor Author

@swissspidy could you please also review 68d96c9

@vsamoletov vsamoletov requested a review from swissspidy Jun 4, 2020
@swissspidy swissspidy requested a review from a team Jun 4, 2020
@swissspidy swissspidy requested a review from schlessera Jun 4, 2020
@schlessera schlessera changed the title Fixes: #5356 Throw exception when misusing error_to_string() Jun 4, 2020
@schlessera schlessera added the bug label Jun 4, 2020
@schlessera schlessera added this to the 2.5.0 milestone Jun 4, 2020
@schlessera schlessera merged commit d7df11b into wp-cli:master Jun 4, 2020
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WP_CLI::error_to_string() doesn't have a guaranteed return value
3 participants