🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Throw exception when misusing error_to_string() - #5405

Merged
schlessera merged 3 commits into
wp-cli:masterfrom
vsamoletov:hotfix/5356
Jun 4, 2020
Merged

Throw exception when misusing error_to_string()#5405
schlessera merged 3 commits into
wp-cli:masterfrom
vsamoletov:hotfix/5356

Conversation

@vsamoletov

@vsamoletov vsamoletov commented Jun 4, 2020

Copy link
Copy Markdown
Contributor

Fixes #5356

@vsamoletov
vsamoletov requested a review from a team as a code owner June 4, 2020 13:24
Comment thread tests/test-wp-cli.php Outdated
@vsamoletov

Copy link
Copy Markdown
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
Copy Markdown
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

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