string(6) "string"
string(6) "string"
string(6) "string"
string(5) "array"
Fatal error: Uncaught TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, stdClass given in /in/Lfmgp:4
Stack trace:
#0 /in/Lfmgp(4): str_replace(' ', '\n', Object(stdClass))
#1 /in/Lfmgp(15): test(Object(stdClass))
#2 {main}
thrown in /in/Lfmgp on line 4
Process exited with code 255.
Output for 7.4.0 - 7.4.33
string(6) "string"
string(6) "string"
string(6) "string"
string(5) "array"
Fatal error: Uncaught Error: Object of class stdClass could not be converted to string in /in/Lfmgp:4
Stack trace:
#0 /in/Lfmgp(4): str_replace(' ', '\n', Object(stdClass))
#1 /in/Lfmgp(15): test(Object(stdClass))
#2 {main}
thrown in /in/Lfmgp on line 4
Process exited with code 255.
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.33
string(6) "string"
string(6) "string"
string(6) "string"
string(5) "array"
Recoverable fatal error: Object of class stdClass could not be converted to string in /in/Lfmgp on line 4
Process exited with code 255.