array(3) {
[0]=>
int(0)
[1]=>
object(obj)#1 (0) {
}
[2]=>
int(2)
}
Fatal error: Uncaught TypeError: obj::__tostring(): Return value must be of type string, none returned in /in/W51BS:6
Stack trace:
#0 [internal function]: obj->__tostring()
#1 /in/W51BS(13): str_replace(Array, Array, '1')
#2 {main}
thrown in /in/W51BS on line 6
Process exited with code 255.
Output for 7.4.0 - 7.4.33
array(3) {
[0]=>
int(0)
[1]=>
object(obj)#1 (0) {
}
[2]=>
int(2)
}
Fatal error: Uncaught Error: Method obj::__toString() must return a string value in /in/W51BS:13
Stack trace:
#0 /in/W51BS(13): str_replace(Array, Array, '1')
#1 {main}
thrown in /in/W51BS on line 13
Process exited with code 255.
array(3) {
[0]=>
int(0)
[1]=>
object(obj)#1 (0) {
}
[2]=>
int(2)
}
Recoverable fatal error: Method obj::__toString() must return a string value in /in/W51BS on line 13
Process exited with code 255.
array(3) {
[0]=>
int(0)
[1]=>
object(obj)#1 (0) {
}
[2]=>
int(2)
}
Catchable fatal error: Method obj::__toString() must return a string value in /in/W51BS on line 13
Process exited with code 255.