Fatal error: Uncaught TypeError: foo(): Argument #2 ($b) must be of type stdClass, int given, called in /in/7B3jB on line 28 and defined in /in/7B3jB:22
Stack trace:
#0 /in/7B3jB(28): foo(1, 2, 3)
#1 {main}
thrown in /in/7B3jB on line 22
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Fatal error: Uncaught TypeError: Argument 2 passed to foo() must be an instance of stdClass, int given, called in /in/7B3jB on line 28 and defined in /in/7B3jB:22
Stack trace:
#0 /in/7B3jB(28): foo(1, 2, 3)
#1 {main}
thrown in /in/7B3jB on line 22
Process exited with code 255.
Fatal error: Uncaught TypeError: Argument 2 passed to foo() must be an instance of stdClass, integer given, called in /in/7B3jB on line 28 and defined in /in/7B3jB:22
Stack trace:
#0 /in/7B3jB(28): foo(1, 2, 3)
#1 {main}
thrown in /in/7B3jB on line 22
Process exited with code 255.
call 1: Argument 2 passed to foo() must be an instance of stdClass, integer given, called in /in/7B3jB on line 28 and defined
call 1: argument 1 is '1'
call 1: updated argument 1 to 'altered 1:1'
call 1: argument 2 is '2'
call 1: updated argument 2 to 'altered 1:2'
call 1: argument 3 is '3'
call 1: updated argument 3 to 'altered 1:3'
call 2: Argument 3 passed to foo() must be an instance of stdClass, string given, called in /in/7B3jB on line 28 and defined
call 2: argument 1 is 'altered 1:1'
call 2: updated argument 1 to 'altered 2:1'
call 2: argument 2 is 'altered 1:2'
call 2: updated argument 2 to 'altered 2:2'
call 2: argument 3 is 'altered 1:3'
call 2: updated argument 3 to 'altered 2:3'
int(1)
string(11) "altered 1:2"
string(11) "altered 2:3"
Output for 5.1.0 - 5.1.6
Fatal error: Argument 2 passed to foo() must be an object of class stdClass, called in /in/7B3jB on line 28 and defined in /in/7B3jB on line 22
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Fatal error: Argument 2 must be an object of class stdClass in /in/7B3jB on line 22
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting '&' or T_VARIABLE or T_CONST in /in/7B3jB on line 22
Process exited with code 255.