Closed Zemistr closed 9 years ago
It's not a big deal but as for me
return (string)$value;
is more readable than
return "$value";
Also you should add test cases which need type casting.
Ok...sooo...better way is:
array_unshift($args, (string)$value);
and
return (string)$value;
?
Yes, I think so.
Ok, I can change the Pull Request :)
Done ;)
Could you please add a test case for this? a class with __toString() method as a context variable.
Thank you!
@fzerorubigd is right, we're still waiting a test case...
This works too with classes with method __toString.