string(11) "MyException"
Fatal error: Uncaught TypeError: consume(): Argument #1 ($e) must be of type MyException, My2Exception given, called in /in/Hlh9i on line 11 and defined in /in/Hlh9i:6
Stack trace:
#0 /in/Hlh9i(11): consume(Object(My2Exception))
#1 {main}
thrown in /in/Hlh9i on line 6
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
string(11) "MyException"
Fatal error: Uncaught TypeError: consume(): Argument #1 ($e) must be of type MyException, My2Exception given, called in /in/Hlh9i on line 11 and defined in /in/Hlh9i:6
Stack trace:
#0 /in/Hlh9i(11): consume(Object(My2Exception))
#1 {main}
thrown in /in/Hlh9i on line 6
Process exited with code 255.
string(11) "MyException"
Fatal error: Uncaught TypeError: Argument 1 passed to consume() must be an instance of MyException, instance of My2Exception given, called in /in/Hlh9i on line 11 and defined in /in/Hlh9i:6
Stack trace:
#0 /in/Hlh9i(11): consume(Object(My2Exception))
#1 {main}
thrown in /in/Hlh9i on line 6
Process exited with code 255.
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
string(11) "MyException"
Catchable fatal error: Argument 1 passed to consume() must be an instance of MyException, instance of My2Exception given, called in /in/Hlh9i on line 11 and defined in /in/Hlh9i on line 6
Process exited with code 255.