Skip PHPCS on PHP 7.4

This commit is contained in:
Ondrej Mirtes 2019-09-16 21:36:39 +02:00
parent e65b5533c7
commit 48340dcad0
No known key found for this signature in database
GPG Key ID: 8E730BA25823D8B5
2 changed files with 20 additions and 15 deletions

View File

@ -51,20 +51,26 @@
</target>
<target name="cs">
<exec
executable="vendor/bin/phpcs"
logoutput="true"
passthru="true"
checkreturn="true"
>
<arg value="--extensions=php"/>
<arg value="--encoding=utf-8"/>
<arg value="--tab-width=4"/>
<arg value="--ignore=tests/*/data,tests/*/traits"/>
<arg value="-sp"/>
<arg path="src"/>
<arg path="tests"/>
</exec>
<php expression="PHP_VERSION_ID &gt;= 70400 ?'true':'false'" returnProperty="isPHP74" level="verbose" />
<if>
<equals arg1="${isPHP74}" arg2="false" />
<then>
<exec
executable="vendor/bin/phpcs"
logoutput="true"
passthru="true"
checkreturn="true"
>
<arg value="--extensions=php"/>
<arg value="--encoding=utf-8"/>
<arg value="--tab-width=4"/>
<arg value="--ignore=tests/*/data,tests/*/traits"/>
<arg value="-sp"/>
<arg path="src"/>
<arg path="tests"/>
</exec>
</then>
</if>
</target>
<target name="cs-fix">

View File

@ -12,7 +12,6 @@
"phpstan/phpstan": "^0.12",
"phpunit/phpunit": "^6.3",
"slevomat/coding-standard": "^4.7.2",
"squizlabs/php_codesniffer": "^3.3.2",
"symfony/process": "^3.4 || ^4.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan-strict-rules": "^0.12"