Answer the question
In order to leave comments, you need to log in
PHPSTORM how to automatically provide type hinting for all class methods?
Good afternoon.
Is there a way in PHPSTORM to automatically provide type hinting for all class methods?
Those. there is some class
class Test
{
/** @var string|null */
protected $varString;
/** return string|null */
public function getVarString () {
//...
}
}
class Test
{
/** @var string|null */
protected $varString;
/** return string|null */
public function getVarString (): ?string {
//...
}
}
Answer the question
In order to leave comments, you need to log in
Google said that this is https://plugins.jetbrains.com/plugin/7622-php-insp...
This is not called type hinting, but return type declaration.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question