Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGlobalNamespaceImportFixer needs option to ignore types on doc blocks #4854
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the GlobalNamespaceImportFixer tries to import classes from phpdoc annotations, even if they aren't actually used in the code. This is an issue when your coding style dictates that you always use FQCNs in doc blocks only. I don't want it to use the imported class name or import unnecessary classes.
Ideally, it would also have an option to rewrite it to use the FQCN, but that should probably be a separate rule. (functions y and z below)