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
Increase minimum PHP version to 7.0 #23
Comments
Or even 7.1 or 7.2? |
Actually I could not find a way to override the I think |
Do you mean the current definition is not working? Or changing it isn't possible in this ruleset here? Then why should it work in another package? 🤔 We should set the |
For different projects we may have different minimum PHP requirements due to Libraries that we use. We could only update the minimum version only once all of our projects are compatible with the next version. If we set the minimum to |
When we set it to 7.0 here we can simply set it to 7.1 in a plugin that requires that, no? |
No, not that I could work out. That is what I was trying to say #23 (comment) |
@ocean90 What do you think? Need a third opinion. |
Why is it not possible to override this value per project? Sound like a bug which should get reported upstream. |
I have created an issue for this squizlabs/PHP_CodeSniffer#2197 |
@grappler Feel free to bump it to 7.0. Projects which still require 5.6 probably don't even use this ruleset. |
7.1 is the current mimimum version supported by PHP, see http://php.net/supported-versions.php. See #23
In 7d0dbb9 I actually went ahead and bumped it to 7.1 since that's the version most of our projects is using. By end of the year we should bump it to 7.2, see http://php.net/supported-versions.php. |
The upstream issue was closed a few days ago. With 4.0.0 a project config should be able to override the default config. |
Currently we have
<config name="testVersion" value="5.6-"/>
. I would like to increase the default to7.0
. I would prefer to set it down5.6
as the exception.If all are agreed I can create a PR.
The text was updated successfully, but these errors were encountered: