PHPCS: set the supported PHP versions in the ruleset file

This commit moves the definition of the supported PHP versions from
RoboFile.php file to the PHPCS configuration file, ruleset.xml. This
should make it easier to configure PHPCS in other places like the IDE.

I also removed the constraint of the highest supported PHP version
(previously, it was hard-coded to 8.0) as I believe we support new PHP
versions as soon as they are released. With this change, we don't need to
remember to update testVersion tag whenever there is a new PHP version.

[MAILPOET-3439]
This commit is contained in:
Rodrigo Primo
2021-02-19 16:29:44 -03:00
committed by wxa
parent f8c74af9e3
commit 70138089d7
2 changed files with 1 additions and 1 deletions

View File

@@ -407,7 +407,6 @@ class RoboFile extends \Robo\Tasks {
return $this
->taskExec($task)
->rawArg('--runtime-set testVersion 7.1-8.0')
->arg('--ignore=' . implode(',', $foldersToIgnore))
->rawArg($stringFilesToCheck)
->run();