Throw exception when misusing `error_to_string()` by vsamoletov · Pull Request #5405 · wp-cli/wp-cli

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@vsamoletov

Copy link

Contributor

@vsamoletov vsamoletov commented

Jun 4, 2020

edited by schlessera

Loading

Fixes #5356

@vsamoletov vsamoletov requested a review from a team as a code owner

June 4, 2020 13:24

@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

June 4, 2020 13:47

@vsamoletov

Copy link

Contributor Author

@swissspidy could you please also review 68d96c9

@vsamoletov vsamoletov requested a review from swissspidy

June 4, 2020 14:08

@swissspidy swissspidy requested a review from a team

June 4, 2020 14:18

@swissspidy swissspidy requested a review from schlessera

June 4, 2020 14:18

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@schlessera schlessera schlessera approved these changes

@swissspidy swissspidy swissspidy approved these changes

Assignees

No one assigned

Labels

Projects

None yet

Milestone

2.5.0

Development

Successfully merging this pull request may close these issues.

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

3 participants

@vsamoletov @schlessera @swissspidy