uopz
uopz copied to clipboard
Fatal error in PHP 8.2.7 + uopz 7.1.1
PHP code:
function x(): never { exit(0); };
x();
Throws error:
Fatal error: Uncaught TypeError: x(): never-returning function must not implicitly return in Command line code:1
Stack trace:
#0 Command line code(1): x()
#1 {main}
thrown in Command line code on line 1