PHP 8.1 RFC: never type
never type | |
New Feature | |
| PHP 8.1 | |
| Implemented | |
never return type |
RFC Vote: never type
Implemented
| - | |
| >= 2/3 | |
| Yes: 42No: 11 |
An RFC to add a new return type called noreturn (or never), that indicates the declared function/method does not return any value, and terminates the execution flow by throwing an exception, or terminating the request with a die/exit call.
A secondary vote to select the return type name, between noreturn and never concluded with never being the winner.