Fatal error: Uncaught TypeError: test(): Argument #1 ($instance) must be of type Foo, Bar given, called in /in/2rllN on line 10 and defined in /in/2rllN:8
Stack trace:
#0 /in/2rllN(10): test(Object(Bar))
#1 {main}
thrown in /in/2rllN on line 8
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/2rllN on line 10 and defined in /in/2rllN:8
Stack trace:
#0 /in/2rllN(10): test(Object(Bar))
#1 {main}
thrown in /in/2rllN on line 8
Process exited with code 255.