i have an extremely simple function that uses the never
return-type:
<?php
function test(): never {
exit(1);
}
test();
But I keep getting this error, that should not be possible:
Fatal error: Uncaught TypeError: test(): never-returning function must not implicitly return in <path>
I get this error since I installed “uopz” using pecl and uninstalling resolves this issue. But I would like to know if anyone knows another fix.
Alternatively I would accept the link to a repository where I can post this issue so the maintainers can fix it.
Thanks in advance.