We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What about don’t __toString() as you cannot throw exceptions?
The text was updated successfully, but these errors were encountered:
Since PHP 7.4+ allows exceptions to be thrown in __toString() the benefit for that specific reason is limited.
__toString()
That said, there is still good reasoning to ban __toString() - see here: ShittySoft/symfony-live-berlin-2018-doctrine-tutorial#3 (comment)
Sorry, something went wrong.
Please do send a patch: good addition 👍
Also, not a problem (IMO) to bump to 7.4 either: past releases still valid anyway
Ocramius
Successfully merging a pull request may close this issue.
What about don’t __toString() as you cannot throw exceptions?
The text was updated successfully, but these errors were encountered: