On Friday, August 03, 2007, Jack Bates wrote:
> or I'm missing some magic to ensure $this->authorized_form_of_name
> is always a string value?
This error is coming from PHP, not symfony. PHP assumes that __toString()
will return a string. As you said, casting to a string is a good solution.
Isolated test case for the error:
$ php -r 'class foo { function __toString() { return null; } } $bar = new foo;
echo $bar;'
Catchable fatal error: Method foo::__toString() must return a string value in
Command line code on line 1
Call Stack:
0.0004 83408 1. {main}() Command line code:0
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---