PHP 8.1 introduced the 'never' return type to indicate functions that will never return normally, typically because they throw exceptions or call exit/die. The type can only be used as a return type, not for parameters, and cannot be combined with union or intersection types. Functions with 'never' type must not return values

2 Comments

Sort: