N
N
Nikita Roschenko2014-11-13 14:45:09
Yii
Nikita Roschenko, 2014-11-13 14:45:09

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

1 answer(s)
D
Dmitry Mironov, 2014-11-13
@Avillions

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 question

Ask a Question

731 491 924 answers to any question