Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement request: add functionality to show where symbols are found #114

Open
Firehed opened this issue Jul 12, 2019 · 1 comment
Open

Comments

@Firehed
Copy link
Contributor

Firehed commented Jul 12, 2019

When running this, it caught some dead imports that my other static analysis tools missed. This is great, but it was quite difficult to track down the source of the error, since some of the class names had a lot of similar matches, and partially-qualified imports (use A\B; new B\C();: A\B\C not found type of stuff) make grepping through the code a bit more complex.

A command to reveal where the missing dependency is present would help a lot; e.g. composer-require-checker find-usage My\Missing\Class

@filips123
Copy link

This could be done with additional command argument or config file option which would cause files where unknown symbol is found to appear on output:

The following unknown symbols were found:
+-----------------------------------+--------------------+-----------------------+
| unknown symbol                    | guessed dependency | location              |
+-----------------------------------+--------------------+-----------------------+
| MyUnknownSymbol                   |                    | src/Example/Class.php |
+-----------------------------------+--------------------+-----------------------+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants