Answer the question
In order to leave comments, you need to log in
How to specify an optional parameter for the @method tag in phpDocumentor?
Actually, the question itself is that there are magic methods, how to specify optional parameters through phpDocumentor?
Answer the question
In order to leave comments, you need to log in
Assign a default value to it. In PhpStorm, such parameters are displayed in []
/**
* @method int test() test(int $int1, int $int2 = 1)
*/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question