Is there an option to automatically add return types, or at least all me to generate them?
What I want is my methods before PhpStorm generates the return types:
function isValid()
{
return true;
}
After
function isValid(): bool
{
return true;
}
Is this possible?
This issue was already answered at: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000163824-Automatically-add-return-type-declarations-
By someone whose profile picture looks like that of LazyOne.
;-)Their answer (quoted and link added) is: