-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
PHPStan Internal error #650
Comments
Hi, Maybe you can try running it with That error looks like there is some issue within the stubs. But Larastan's stubs are ok. No errors in CI or in any of my personal projects. Do you have some stubs of your own? |
We had the same issue with our projects. Is not only @DavyDeCoster And we don't have any stub, laravel 7 by default. In fact, is a new project with days of life |
Do you happen to recognize your code in these cases? |
I think this may be a problem with PHPStan itself. |
I created new Laravel 7 project, installed Larastan. Scanned Which Laravel version are you using? Also did |
@canvural Laravel 7.27.0 is used in my current project. My previous comment was the output of the debug-flag. |
Can you try to analyze just one file? If it doesn't happen, can you try to find a file in which this error happens? |
@canvural Something strange is happening. I've updated my dependencies through composer and now it's working again. For me updating zircote/swagger-php from 3.0.5 to 3.1.0 fixed the problem. |
Ah yes. I saw issues related to that in PHPStan repo. zircote/swagger-php#834 and zircote/swagger-php#841 If @Jonatanmdez can also confirm this is the issue, we can close this I think. |
Closing this one as it seems it's fixed. Please open a new issue if it continues. |
--level
used: 5Description
When I run PHPStan, I get the following exception (flag -vvv used):
This config-file is used:
Recently got this on 2 different codebases.
The text was updated successfully, but these errors were encountered: