I normally struggle when trying to find on the results list whenever I need something PHP has (like \Closure
or \Exception
, etc).
So I think the LSP should prioritise based on some rules like these (ordered from first to last):
- Is a PHP native object
- Object is locally within same file
- Is a project's local namespace object (within same folder/namespace)
- Whatever object is outside of local namespace (dependencies, etc)
Object = class, function, etc