-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Expected Behavior
In my project I want to be able to change the testVersion
for PHPCompatibility coding standard to use.
Some of my plugins require PHP 7.2, others - PHP 7.4.
Current Behavior
According to
phpDocumentor/coding-standard#32 (comment)
it's not possible to override the testVersion
set in the ruleset upstream.
And I spent unreasonable amount of time confirming this behavior before I found that comment.
Possible Solution
Remove this line from here https://github.com/awesomemotive/wpforms-phpcs/blob/main/WPForms/ruleset.xml#L17
<config name="testVersion" value="7.1-"/>
For WPForms, you can set this value in its local phpcs.xml
file (which you already have done).