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
The title pretty much says it, the plugin automatically adds the namespace and class of the declared class itself. I am using the autoloader psr4 (if that makes any difference in behavior).
When I activate the command 'namespaceResolver.importAll' it correctly imports all other classes, but also the declaredclass itself which causes errors (as it cannot find itself when it is declaring itself).
It has a negative impact on the workflow, because I have to remove it everytime I auto-import-all. Also it is not necessary to import classes in the same namespace (which it is doing). So there are two birds one can kill with one stone, as it shouldn't import itself as it is declared in the same namespace the filescope is at that moment.
version details:
PHP Namespace Resolver 1.1.8
If you need any additional information, feel free to ask!
The text was updated successfully, but these errors were encountered:
Goodday,
The title pretty much says it, the plugin automatically adds the namespace and class of the declared class itself. I am using the autoloader psr4 (if that makes any difference in behavior).
When I activate the command 'namespaceResolver.importAll' it correctly imports all other classes, but also the declaredclass itself which causes errors (as it cannot find itself when it is declaring itself).
It has a negative impact on the workflow, because I have to remove it everytime I auto-import-all. Also it is not necessary to import classes in the same namespace (which it is doing). So there are two birds one can kill with one stone, as it shouldn't import itself as it is declared in the same namespace the filescope is at that moment.
version details:
PHP Namespace Resolver 1.1.8
If you need any additional information, feel free to ask!
The text was updated successfully, but these errors were encountered: