-
Notifications
You must be signed in to change notification settings - Fork 27
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
Install phpstan extension also for root package #39
Install phpstan extension also for root package #39
Conversation
abb5b42
to
5e39cd7
Compare
@@ -8,7 +8,7 @@ | |||
"require": { | |||
"php": "^7.1 || ^8.0", | |||
"composer-plugin-api": "^1.1 || ^2.0", | |||
"phpstan/phpstan": ">=0.11.6" | |||
"phpstan/phpstan": ">=0.12.19" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to support infile @phpstan-ignore-line
3c102b0
to
997c743
Compare
997c743
to
7ffbb85
Compare
cd8dd63
to
de379c0
Compare
PR is done, |
b96b797
to
fc412bd
Compare
@ondrejmirtes can you please review this PR? |
|
fc412bd
to
ee1d0a6
Compare
I have separated the verbose logging to #42, all other changes are related
Exactly that is the point. When phpstan config is added to composer.json, it must always apply. Currently, for the root project, all configs must be included on two locations - like in https://github.com/atk4/data/blob/b0b50a0f0ae5ce280a180beb0dfd63f08100e02f/phpstan.neon.dist#L1-L3 . And if such config is then run from another project, it will even fail as included twice, steps to reproduce:
|
ee1d0a6
to
a53d1fa
Compare
4d4801e
to
67acd2a
Compare
67acd2a
to
e80be09
Compare
@ondrejmirtes can you please review? |
I'm still not sure about the implications and the usefulness. I'd rather not do it. |
yes, repos including some extra conf manually need to be updated (otherwise phpstan will throw for config included twice), but this PR unifies how the composer config behaves - like for ex. other than this change needed, do you have any other implication in head? to maintain compatibility with existing projects, what about releasing this as 2.x version? |
I feel like there isn't any demand for this, and I feel against it too. So closing. Thanks for understanding. |
fixes #36