Wrong function return type never
for PHP 7.2
never
return type available as of PHP 8.1.0 https://www.php.net/manual/en/language.types.never.php
function func(): never{
die;
}
Wrong function return type never
for PHP 7.2
never
return type available as of PHP 8.1.0 https://www.php.net/manual/en/language.types.never.php
function func(): never{
die;
}
FreeStyler thank you for reporting the issue.
Is it about the inlay hint never
that is shown as a gray text after the function?
FreeStyler Thank you. That is supposed to be just an informational hint text.
Do you use the double-click feature (to insert the inlay hint into the code?), or does it get distracting to have never
shown in PHP < 8?