You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given I have a function foo() that accepts a string, doing the below should only auto complete strings (or maybe there should atleast be an option to).
$bar = 123;
$foo = "123";
foo( $ ); // should only show a completion for $foo, as $bar is of type int
I tried to dig into the code to accomplish this - however I got pretty lost! It seems codeintel2 can resolve the type from a variable, for example, $a = new Query(); $a-> // will show completions from Query however in the case of autocompletions the autocompletions for current scope doesn't seem to return type information, hence the information at that point is lost.
The text was updated successfully, but these errors were encountered:
Given I have a function
foo()
that accepts a string, doing the below should only auto complete strings (or maybe there should atleast be an option to).I tried to dig into the code to accomplish this - however I got pretty lost! It seems codeintel2 can resolve the type from a variable, for example,
$a = new Query(); $a-> // will show completions from Query
however in the case of autocompletions theautocompletions for current scope
doesn't seem to return type information, hence the information at that point is lost.The text was updated successfully, but these errors were encountered: