Auto complete for dynamic methods Follow
hi every body
in my project there is a part that generate dynamic functions and method that phpstorm can not detect them
are there any way to define that functions or class or methods that phpstorm can show it when typing code ?
it's not important how it is hard for example in a file i define that functions or method then phpstorm appear them in drop-down menu for auto complete
Please sign in to leave a comment.
Please show an example -- just to be 100% clear on what exactly you have there.
In any case:
thanks for your answer
your solution worked for me
but what about this type of class:
suppose all of above codes are dynamic for example i have the function like this:
and i access to this function everywhere so my codes works like this:
i expected when i type myFunc()-> ... it shows me myClass and when enter and again put -> then it shows me test(); but it didn't work
i create an unusable php file called auto.php and put this codes there as you said before:
then myFunc() appears in auto complete list but it only shows myClass means myFunc()->myClass but it doesn't show test() when i put a -> after it myFunc()->myClass-> (nothing)
that was interesting while i open this project in eclipse and it worked there means auto complete list for myFunc()->myClass->test() (but didn't work in phpStorm)
see screenshots in real project (that it worked in eclipse):
1.this is my class:
2.this the function that i have access to it everywhere and i load my class inside it:
3. this is what i put in auto.php for generate auto complete list:
4. the result that i got in eclipse (see picture if doesn't show below http://axgig.com/images/06415002578666151469.png ):
5. and doesn't get same result in phpStorm (see http://axgig.com/images/33047926276403682707.png ):
Sorry .. I'm still not 100% clear on the actual issue (I mean -- what files you can edit and what not).
But regarding your example -- this solves it:
thanks a million it worked