-
Notifications
You must be signed in to change notification settings - Fork 534
Use current PHP version in CallToFunctionParametersRuleTest #3702
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
Use current PHP version in CallToFunctionParametersRuleTest #3702
Conversation
2d44ec4
to
ed8b686
Compare
This pull request has been marked as ready for review. |
ah, I just saw that for the bug fix / feature PR I'm preparing it doesn't matter. I just need to be able to have a dynamic PHP version in this test file. |
Please note: we are working on the same files |
Oh, not good.. The scope dependent php version functionality is 2.x only, right? I'm also OK with the skipping approach of course, the constructor is conflicting any way.. |
ed8b686
to
2217bcb
Compare
yes
no its fine. lets see which one is merged earlier :) |
2217bcb
to
a8146c8
Compare
ahh this looks great now, thanks |
btw I have a PR prepared which adapts a rule dealing with an high-upvoted bug. but it would need this small test change first. would be great if this can be merged :) |
@ondrejmirtes after this I was planning to fix phpstan/phpstan#11418, or do you consider that to be a new feature, then I can just skip this and work on 2.x after #3662 was merged. I don't want to pressure you, just trying to figure out what the best approach is to avoid conflicts/issues. |
This #3662 basically fixes the same problem, so in order to avoid conflicts, I'm closing this. Thanks. |
Working on something in
FunctionCallParametersCheck
which is tested viaCallToFunctionParametersRuleTest
but realised that the PHP version was hard-coded to 8.0 which is blocking me there. Also: bigger range of tests over multiple PHP versions, yay :) in general there seem to be many rules where similar things could be done.Unfortunately this causes a small conflict in 2.0.x apparently.
UPDATE: Markus made me aware of #3662 and I adapted the named arguments test to be skipped exactly the same way to avoid troubles there.