-
Notifications
You must be signed in to change notification settings - Fork 72
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
Report guess dependencies from installed modules #52
Comments
You mean figuring out the |
I'm not sure what you mean by that. Ideally, I'd like a report that looks like the following:
This should be possible by resolving the location of It's not even really a "guess", so much as calculating the missing |
Ah yes, this should be feasible, but it requires switching to https://github.com/Roave/BetterReflection first, so that files can be located without being actually loaded. |
I don't see any other usages of the Reflection API in this package? Everything is already based on AST traversal, it seems. Maybe you changed your strategy after posting this comment? :-) |
Indeed, I think reflection is not used at all in here: probably outdated reasoning. |
phpunit 9 was released
Here's a little example of what I put together recently: https://gist.github.com/KayKursawe/524036c6c95fe4214a8759b9fc46704f These are the steps that I did:
Ideally, steps 2. and 3. shouldn't be needed at all, once #294 will be resolved, hopefully. Of course, this is a quick example only, based on Symfony. Should be good enough to discuss whether this approach might be feasible. Wdyt? |
I got the following output:
All of the dependencies with no guessed dependency, in this example, could have been guessed - they're all installed. Reporting them ought to be fairly easy?
Bonus points for reporting the suggested version constraint 😃
Extra bonus points and cookies 🍪 for an option to automatically update your
composer.json
with suggested version constraints! 👀The text was updated successfully, but these errors were encountered: