object(Foo)#3 (2) {
["bool"]=>
bool(true)
["int"]=>
int(10)
}
Fatal error: Uncaught TypeError: Foo::__construct(): Argument #1 ($bool) must be of type bool, string given, called in /in/KtY24 on line 21 and defined in /in/KtY24:6
Stack trace:
#0 /in/KtY24(21): Foo->__construct('bar', '10')
#1 {main}
thrown in /in/KtY24 on line 6
Process exited with code 255.
Output for 8.5.0 - 8.5.11
object(Foo)#3 (2) {
["bool"]=>
bool(true)
["int"]=>
int(10)
}
Fatal error: Uncaught TypeError: Foo::__construct(): Argument #1 ($bool) must be of type bool, string given, called in /in/KtY24 on line 21 and defined in /in/KtY24:7
Stack trace:
#0 /in/KtY24(21): Foo->__construct('bar', '10')
#1 {main}
thrown in /in/KtY24 on line 7
Process exited with code 255.