Community library / External article
The "never" Type in PHP
There may be times when you're writing a function in PHP that you know will never return a value. This could be because the function always throws an exception, or maybe calls exit or die. In these cases, you might want to use the never type.
- Published
- July 9, 2025
- Source
- ashallendesign.co.uk
- Visits
- 2,436