Answer the question
In order to leave comments, you need to log in
Yii Behavior and autocompletion in PhpStorm (or @mixin tag in PHPDoc comments)?
PhpStorm can pick up traits. In Yii, a kind of traits or mixins are implemented through Behaviors.
Is it possible to teach PhpStorm to use methods from a Behavior in the context of the component it is bound to?
It would be great to specify the link via PHPDoc comments, for example with the @mixin tag. But this tag is not implemented.
Perhaps there are other ways?
UPD I
invite everyone interested to vote for the implementation of this feature in PhpStorm
click
Answer the question
In order to leave comments, you need to log in
Stumbled upon this question by accident a few years after it was written. At the moment, @mixin in PhpStorm works as the author of the post wanted.
If I have to use it often, I add the necessary methods through @ method. You can try requesting a new feature here
I wonder if a solution has been found so far? Interested for Zend Studio.
You can try adding something like
/* var $classInstance ClassA|ClassB */ at the very top of the page
You can try adding something like
/* var $classInstance ClassA|ClassB */ at the very top of the page
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question