Closed thekid closed 3 years ago
Forward compatible but also supports apidoc / syntax combination:
/** @return never */ public function halt(): void { exit(); }
The reflection API lets apidoc take precedence over the void return type declared syntactically, as is done for e.g. callable and arrays
void
See https://wiki.php.net/rfc/noreturn_type. Implements runtime support for xp-framework/compiler#109
Forward compatible but also supports apidoc / syntax combination:
The reflection API lets apidoc take precedence over the
void
return type declared syntactically, as is done for e.g. callable and arraysSee https://wiki.php.net/rfc/noreturn_type. Implements runtime support for xp-framework/compiler#109