-
Notifications
You must be signed in to change notification settings - Fork 179
Fix build #400
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
Fix build #400
Conversation
I'm unable to reproduce the PHPStan failures locally, I even resorted to run the actions locally with Any pointers? |
I agree with you, too, I can not understand why the problem is shown here =( |
Given that the last commit on |
The class in question that cannot be found is: I don't know why it doesn't fail locally (doesn't for me either), but it has to be discoverable by PHPStan using this guide: https://phpstan.org/user-guide/discovering-symbols It's entirely possible it worked thanks to some coincidence because of the order of loaded files. But in order to work 100% of the time, you need to follow what Discovering Symbols says about class aliases. You need to put files that define those aliases to |
Let's try if it helps: #402 |
Yep, it works. But what's PHPStan actually telling you here is that if the user of this library adds it to their composer.json and tries to instantiate Yeah, if they first load |
Thank you for putting the time to help us understanding what's wrong. Although the |
Thanks a lot @ondrejmirtes for solving this mistery for us! It was costing us a lot of wasted time! |
@Jean85 can you 🙏 update the PR with the changes needed to make it work so that we can merge and unblock all the other PRs? |
This is an attempt to check the build status on master since it's failing in #399