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
Return empty string instead of null in AbstractList::__toString #25
Conversation
In PHP, __toString *must* return a string, or an error is raised.
|
The build fails, I assume it can be returned null than empty string will help. |
|
Ah there is a unit-test testing for specifically
|
|
Shall I modify the unit-test or is this intended behaviour? |
|
You should ping @pmjones then. Hari K T You can ring me : +91 9388 75 8821 http://harikt.com , https://github.com/auraphp , Skype : kthari85 On Wed, Oct 22, 2014 at 8:45 PM, Aldwin Vlasblom notifications@github.com
|
|
The problem is as follows: When PHP uses the I will modify the unit-test accordingly and push to this branch. |
|
@Avaq may be branch out from this and send a different PR . |
|
I am ok with this. Assuming no one tried to compare the return of |
|
People who expect the return value of |
Return empty string instead of null in AbstractList::__toString
|
✅ |
In PHP,
__toStringmust return a string, or an error is raised.