Got 3 bars.
Fatal error: Uncaught TypeError: foo(): Argument #1 must be of type Bar, int given, called in /in/Y26IV on line 16 and defined in /in/Y26IV:8
Stack trace:
#0 /in/Y26IV(16): foo(1, 2, 3)
#1 {main}
thrown in /in/Y26IV on line 8
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Got 3 bars.
Fatal error: Uncaught TypeError: Argument 1 passed to foo() must be an instance of Bar, int given, called in /in/Y26IV on line 16 and defined in /in/Y26IV:8
Stack trace:
#0 /in/Y26IV(16): foo(1, 2, 3)
#1 {main}
thrown in /in/Y26IV on line 8
Process exited with code 255.
Output for 7.3.0 - 7.3.33
Got 3 bars.
Fatal error: Uncaught TypeError: Argument 1 passed to foo() must be an instance of Bar, int given, called in /in/Y26IV on line 16 and defined in /in/Y26IV:8
Stack trace:
#0 /in/Y26IV(16): foo(1, 2, 3)
#1 {main}
Next TypeError: Argument 2 passed to foo() must be an instance of Bar, int given, called in /in/Y26IV on line 16 and defined in /in/Y26IV:8
Stack trace:
#0 /in/Y26IV(16): foo(1, 2, 3)
#1 {main}
Next TypeError: Argument 3 passed to foo() must be an instance of Bar, int given, called in /in/Y26IV on line 16 and defined in /in/Y26IV:8
Stack trace:
#0 /in/Y26IV(16): foo(1, 2, 3)
#1 {main}
thrown in /in/Y26IV on line 8
Process exited with code 255.
Got 3 bars.
Fatal error: Uncaught TypeError: Argument 1 passed to foo() must be an instance of Bar, integer given, called in /in/Y26IV on line 16 and defined in /in/Y26IV:8
Stack trace:
#0 /in/Y26IV(16): foo(1, 2, 3)
#1 {main}
Next TypeError: Argument 2 passed to foo() must be an instance of Bar, integer given, called in /in/Y26IV on line 16 and defined in /in/Y26IV:8
Stack trace:
#0 /in/Y26IV(16): foo(1, 2, 3)
#1 {main}
Next TypeError: Argument 3 passed to foo() must be an instance of Bar, integer given, called in /in/Y26IV on line 16 and defined in /in/Y26IV:8
Stack trace:
#0 /in/Y26IV(16): foo(1, 2, 3)
#1 {main}
thrown in /in/Y26IV on line 8
Process exited with code 255.
Output for 5.6.0 - 5.6.40
Got 3 bars.
Catchable fatal error: Argument 1 passed to foo() must be an instance of Bar, integer given, called in /in/Y26IV on line 16 and defined in /in/Y26IV on line 8
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38
Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /in/Y26IV on line 8
Process exited with code 255.