PHP 7.4: new NewExceptionsFromToString sniff by jrfnl · Pull Request #814 · PHPCompatibility/PHPCompatibility

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

@jrfnl

Copy link Copy Markdown

Member

@jrfnl jrfnl commented

Jun 10, 2019

edited

Loading

As of PHP 7.4, throwing exceptions from __toString() is now permitted. Previously this resulted in a fatal error. Existing recoverable fatals in string conversions have been converted to Error exceptions.

Refs:

Related #808

> As of PHP 7.4, throwing exceptions from __toString() is now permitted. Previously this resulted in a fatal error. Existing recoverable fatals in string conversions have been converted to Error exceptions.

Refs:
* https://wiki.php.net/rfc/tostring_exceptions
* https://github.com/php/php-src/blob/374f7699821eb723a3a82a9854d18c0530b9d4e9/UPGRADING#L190
* php/php-src@a31f464

@wimg wimg merged commit 37b4866 into master

Jun 16, 2019

@delete-merged-branch delete-merged-branch bot deleted the php-7.4/new-to-string-exceptions branch

June 16, 2019 13:28

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

Reviewers

@wimg wimg wimg approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

9.2.0

Development

Successfully merging this pull request may close these issues.

2 participants

@jrfnl @wimg