-
-
Notifications
You must be signed in to change notification settings - Fork 864
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
ReflectionProvider: "Method of class MyClass cannot be used as the class is not loaded in file" #7333
Comments
This bug report is missing a link to reproduction at phpstan.org/try. It will most likely be closed after manual review. |
I cloned your repository, installed dependencies and ran PHPStan without an error:
|
um... That's problematic. I'll keep the issue open and if I find out what the problem is, I'll put the answer here. |
What configuration? I cloned the repo and ran PHPStan with your configuration :) I'm on PHP 8.1 but I also tried it with 8.0. |
I don't know. I'm trying to figure out why it works for you and not for me. |
I have some reason to believe PHPStan 1.7.7 is going to fix that thanks to: ondrejmirtes/BetterReflection@2a0638b Please test it once I release it later today, and report back :) Thank you. |
Yes, I confirm, it's OK. Thx you very much. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug report
I use an extension with the ReflectionProvider.
Since PHPStan 1.6, I had an error when activating bleedingEdge. Without, there is no problem. With PHPStan 1.7, with or without bleedingEdge, I have the error
Method of class MyClass cannot be used as the class is not loaded in file
Code snippet that reproduces the problem
I created repository with same error. The extension used is very similar to mine.
Expected output
No problem with class not found.
I don't know if the problem comes from the way the extension is written or from PHPStan.
Thx for your help
The text was updated successfully, but these errors were encountered: