Fatal error: Uncaught TypeError: test(): Argument #1 ($foo) must be of type Foo, Bar given, called in /in/cFKtV on line 16 and defined in /in/cFKtV:12
Stack trace:
#0 /in/cFKtV(16): test(Object(Bar))
#1 {main}
thrown in /in/cFKtV on line 12
Process exited with code 255.
Fatal error: Uncaught TypeError: Argument 1 passed to test() must be an instance of Foo, instance of Bar given, called in /in/cFKtV on line 16 and defined in /in/cFKtV:12
Stack trace:
#0 /in/cFKtV(16): test(Object(Bar))
#1 {main}
thrown in /in/cFKtV on line 12
Process exited with code 255.
Catchable fatal error: Argument 1 passed to test() must be an instance of Foo, instance of Bar given, called in /in/cFKtV on line 16 and defined in /in/cFKtV on line 12
Process exited with code 255.