Update php version range for code sniffer

[MAILPOET-3296]
This commit is contained in:
Rostislav Wolny
2020-12-02 17:21:50 +01:00
committed by Veljko V
parent 7155aa03f9
commit 703fbe53a8

View File

@@ -394,7 +394,7 @@ class RoboFile extends \Robo\Tasks {
// PHP >= 7.1 for lib & tests
->taskExec($task)
->rawArg('--runtime-set testVersion 7.1-7.4')
->rawArg('--runtime-set testVersion 7.1-8.0')
->arg('--ignore=' . implode(',', [
'lib/Config/PopulatorData/Templates',
'tests/_data',
@@ -409,12 +409,12 @@ class RoboFile extends \Robo\Tasks {
// PHP >= 7.1 in plugin root directory
->taskExec($task)
->rawArg('--runtime-set testVersion 7.1-7.4')
->rawArg('--runtime-set testVersion 7.1-8.0')
->rawArg('-l .')
// PHP >= 7.2 for dev tools, etc.
->taskExec($task)
->rawArg('--runtime-set testVersion 7.2-7.4')
->rawArg('--runtime-set testVersion 7.2-8.0')
->arg('--ignore=' . implode(',', [
'prefixer/build',
'prefixer/vendor',
@@ -440,7 +440,7 @@ class RoboFile extends \Robo\Tasks {
->taskExec(
'./tasks/code_sniffer/vendor/bin/phpcbf ' .
'--standard=./tasks/code_sniffer/MailPoet ' .
'--runtime-set testVersion 7.1-7.4 ' .
'--runtime-set testVersion 7.1-8.0 ' .
$filePath . ' -n'
)
->run();