Skip to content

Remove testVersion from the ruleset #66

@slaFFik

Description

@slaFFik

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions