phpro / grumphp

A PHP code-quality tool
MIT License
4.12k stars 430 forks source link

Larastan not working with GrumPHP #927

Closed jose-ba closed 2 years ago

jose-ba commented 2 years ago
Q A
Version GrumPHP 1.3.2
Bug? no
New feature? no
Question? yes
Documentation? no

Hello! I'm trying to add grumphp to a Laravel project with PHPStan. When I run PHPStan directly I have 0 errors (after some work), but if I run it through GrumPHP, I get 188 errors. I'm using Larastan extension for PHPStan, but it seems that it's not working if I use GrumPHP. I have added it to phpstan.neon. Am I missing something?

Thank you!

jose-ba commented 2 years ago

It only happens if I run vendor/bin/grumphp run so I guess that the problem is that it is passing phpstan all project files. Sorry for the inconvenience.