uopz icon indicating copy to clipboard operation
uopz copied to clipboard

Fatal error in PHP 8.2.7 + uopz 7.1.1

Open vjik opened this issue 1 year ago • 2 comments

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

vjik avatar Jul 01 '23 10:07 vjik