-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Unexpected item 'parameters › type_coverage'. #10
Comments
Hi, do you have phpstan extension installer installed? |
Hey @TomasVotruba. I don't know how I miss that something like https://github.com/phpstan/extension-installer exists in the first place but I guess that also explains why the line where you mention it in the readme didn't trigger me 🙈 In case somebody else stumbles upon this: You can alternatively also solve this by adding the following line to your includes section in your phpstan.neon file: includes:
- vendor/tomasvotruba/type-coverage/config/extension.neon Thank you Tomas 🙏 |
Even if I have installed Instead if I install PHPStan, PHPStan Extension installer and then this extension globally the issue does not arise. |
Sometimes I have similar glitches. Running |
Thanks Tomas. It's a subtle issue of https://github.com/phpstan/extension-installer as referenced here phpstan/extension-installer#76 (comment) and here phpstan/extension-installer#65 It seems that if you have the installer installed globally and locally, the second one does not find the extensions locally. Very strange. |
I see. I had similar issues with other dev packages, so I stopped using global scope. It also makes the project vendor locked to your local setup. Also this leads to version conflicts. |
I am trying to set it up but ran into the following error
I just ran the composer command + added the config in the readme to phpstan.neon. Did I miss something when installing / configuring it? 🤔
The text was updated successfully, but these errors were encountered: