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

Add ResourceObject::toString() method #84

Merged
merged 2 commits into from
Oct 1, 2016
Merged

Add ResourceObject::toString() method #84

merged 2 commits into from
Oct 1, 2016

Conversation

koriym
Copy link
Member

@koriym koriym commented Oct 1, 2016

http://php.net/manual/en/language.oop5.magic.php

Warning
You cannot throw an exception from within a __toString() method. Doing so will result in a fatal error.

To avoid this issue, A ResourceObject consumer call toString() explicitly.

@koriym koriym merged commit 7168fe1 into bearsunday:1.x Oct 1, 2016
@koriym koriym deleted the ro branch October 1, 2016 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant