-
Notifications
You must be signed in to change notification settings - Fork 49
Require phpunit on dev deps #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
Comments
Hi, there's a similar request on phpstan-doctrine: phpstan/phpstan-doctrine#9 I'm still evaluating this. The problem is that PHPStan needs to see PHPUnit classes to analyse code correctly. So if you don't have them autoloaded, you need to add your PHPUnit installation to phpstan-shim is fine since it has Docker: I'm not sure about how to solve this one, I'll ask the author of the images. |
You didn't understand IMHO, I'm talking about global installation like If we require one of the plugins on our project dependencies, we will have phpstan installed (and phpunit) for this case. Sample:
Well, not a big deal if this is configurable. We just have to add the correct error message. ;-) |
👍 for I wanted to use PHPUnit 7 in our global composer dependencies (in Docker base image) and it failed:
I'll send PR with hotfix. |
I think this is the root of an issue we're having which causes an incompatibility with On a fresh Symfony 4.0.4 install with PHPStan, tests work fine but after requiring
|
I aim to solve this for all extensions by removing |
@ondrejmirtes Thanks, it's a great news! 👍 I'm currently stuck with a PHPUnit plugin upgrade because the BC tricks detect classes with the composer dep phpunit and not the Having this dependency removed will solve that. |
This is solved for a long time. |
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. |
Uh oh!
There was an error while loading. Please reload this page.
PHPUnit should not be a mandatory requirement.
Some users would like to use PHPUnit phar global installation and don't want to have to get the whole dependencies of PHPUnit and itself on the project vendor dir.
What is the goal of this requirement? I don't see any direct class usage so far.
UPDATE: BTW, it also mandatory to require also phpstan from plugins? What is the usage if we use the docker image or the shim repository?
Regards
The text was updated successfully, but these errors were encountered: