array(2) {
["fooBoo"]=>
NULL
["bar"]=>
string(3) "bar"
}
Warning: Undefined variable $bar in /in/B2Z0P on line 91
Fatal error: Uncaught TypeError: MyValueObject::__toString(): Return value must be of type string, none returned in /in/B2Z0P:92
Stack trace:
#0 /in/B2Z0P(100): MyValueObject->__toString()
#1 {main}
thrown in /in/B2Z0P on line 92
Process exited with code 255.
Output for 7.4.0 - 7.4.33
array(2) {
["fooBoo"]=>
NULL
["bar"]=>
string(3) "bar"
}
Notice: Undefined variable: bar in /in/B2Z0P on line 91
Fatal error: Uncaught Error: Method MyValueObject::__toString() must return a string value in /in/B2Z0P:100
Stack trace:
#0 {main}
thrown in /in/B2Z0P on line 100
Process exited with code 255.
Output for 7.3.32 - 7.3.33
array(2) {
["fooBoo"]=>
NULL
["bar"]=>
string(3) "bar"
}
Recoverable fatal error: Method MyValueObject::__toString() must return a string value in /in/B2Z0P on line 100
Process exited with code 255.
array(2) {
["fooBoo"]=>
NULL
["bar"]=>
string(3) "bar"
}
Notice: Undefined variable: bar in /in/B2Z0P on line 91
Recoverable fatal error: Method MyValueObject::__toString() must return a string value in /in/B2Z0P on line 100
Process exited with code 255.
array(2) {
["fooBoo"]=>
NULL
["bar"]=>
string(3) "bar"
}
Notice: Undefined variable: bar in /in/B2Z0P on line 91
Catchable fatal error: Method MyValueObject::__toString() must return a string value in /in/B2Z0P on line 100
Process exited with code 255.