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
Currently we would filter class suggestions for classes which are compatible with the parameter type, however often we may want to use a factory to create the parameter type, which is also a class, e.g. $layout->constraints(ConstraintFactrory::percentage(50)). Currently ConstraintFactory would not be suggested.
In general:
if we are making a static call then it's better to show all class results.
unless we further filter to classes with static mehods that return the wanted class.
The text was updated successfully, but these errors were encountered:
dantleech
changed the title
Context sensitive class filtering issue
Suggestion filtering incorrectly filters static calls.
Mar 16, 2024
Currently we would filter class suggestions for classes which are compatible with the parameter type, however often we may want to use a factory to create the parameter type, which is also a class, e.g.
$layout->constraints(ConstraintFactrory::percentage(50))
. CurrentlyConstraintFactory
would not be suggested.In general:
The text was updated successfully, but these errors were encountered: