1
autoload A
Success Demo
2
autoload B
3
autoload C
Success Demo
4
autoload Y
Fatal error: Uncaught TypeError: fail(): Argument #1 ($test) must be of type X, Demo given, called in /in/NuX6K on line 36 and defined in /in/NuX6K:32
Stack trace:
#0 /in/NuX6K(36): fail(Object(Demo))
#1 {main}
thrown in /in/NuX6K on line 32
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
1
autoload A
Success Demo
2
autoload B
3
autoload C
Success Demo
4
autoload Y
Fatal error: Uncaught TypeError: Argument 1 passed to fail() must be an instance of X, instance of Demo given, called in /in/NuX6K on line 36 and defined in /in/NuX6K:32
Stack trace:
#0 /in/NuX6K(36): fail(Object(Demo))
#1 {main}
thrown in /in/NuX6K on line 32
Process exited with code 255.