array(2) {
[0]=>
object(Bar)#2 (0) {
}
[1]=>
object(Bar)#3 (0) {
}
}
Fatal error: Uncaught TypeError: Foo::__construct(): Argument #3 must be of type Bar, Baz given, called in /in/SDRZ0 on line 16 and defined in /in/SDRZ0:9
Stack trace:
#0 /in/SDRZ0(16): Foo->__construct(Object(Bar), Object(Bar), Object(Baz))
#1 {main}
thrown in /in/SDRZ0 on line 9
Process exited with code 255.
array(2) {
[0]=>
object(Bar)#2 (0) {
}
[1]=>
object(Bar)#3 (0) {
}
}
Fatal error: Uncaught TypeError: Argument 3 passed to Foo::__construct() must be an instance of Bar, instance of Baz given, called in /in/SDRZ0 on line 16 and defined in /in/SDRZ0:9
Stack trace:
#0 /in/SDRZ0(16): Foo->__construct(Object(Bar), Object(Bar), Object(Baz))
#1 {main}
thrown in /in/SDRZ0 on line 9
Process exited with code 255.