R
R
Rastishka2019-02-12 15:55:24
phpstorm
Rastishka, 2019-02-12 15:55:24

Is it possible to document magic methods/properties within a class?

According to the documentation, regular class methods/properties should be documented in the class body before the method itself.
Magic methods/properties need to be documented before the class (although the implementation itself is inside the class).
This is extremely inconvenient when the class is large, plus the restriction to one line.
Is it possible to somehow document the magic inside the class next to the implementation, so that phpStorm's autocomplete sees it correctly?
Maybe with third party plugins?
What are not crooked ways?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question