# For PHP 8 (and lower), `never` is emitted as `void`
$ echo 'function bail(): never { exit(); }' | xp compile -t PHP.8.0 -q -
<?php function bail():void{exit();};
# For PHP 8.1, `never` is emitted as-is
$ echo 'function bail(): never { exit(); }' | xp compile -t PHP.8.1 -q -
<?php function bail():never{exit();};
See https://wiki.php.net/rfc/noreturn_type. Implements emitting support for xp-framework/compiler#109