Answer the question
In order to leave comments, you need to log in
How to put comments in the model in phpstopme (hotkeys)?
public static function tableName()
{
return 'category';
}
/**
* @inheritdoc
*/
How to automatically post comments ?
Answer the question
In order to leave comments, you need to log in
I use alt + Enter - this is a drop-down menu that offers a solution to the problem (the cursor is anywhere in the function, except for those where there is an obvious error), then Enter. In general, the IDE itself says that it is wrong to keep the method without comments and itself suggests inserting PHPDoc.
And so everything is in the settings, find and configure as you like.
Start typing /** in front of the method and hit enter, which will generate the comment itself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question