Fatal error: Uncaught TypeError: NS\A::test(): Argument #1 ($b) must be of type B, NS\B given, called in /in/NC47N on line 16 and defined in /in/NC47N:10
Stack trace:
#0 /in/NC47N(16): NS\A->test(Object(NS\B))
#1 {main}
thrown in /in/NC47N on line 10
Process exited with code 255.
Fatal error: Uncaught TypeError: Argument 1 passed to NS\A::test() must be an instance of B, instance of NS\B given, called in /in/NC47N on line 16 and defined in /in/NC47N:10
Stack trace:
#0 /in/NC47N(16): NS\A->test(Object(NS\B))
#1 {main}
thrown in /in/NC47N on line 10
Process exited with code 255.
Catchable fatal error: Argument 1 passed to NS\A::test() must be an instance of B, instance of NS\B given, called in /in/NC47N on line 16 and defined in /in/NC47N on line 10
Process exited with code 255.