File tree Expand file tree Collapse file tree 2 files changed +20
-15
lines changed Expand file tree Collapse file tree 2 files changed +20
-15
lines changed Original file line number Diff line number Diff line change 5151 </target >
5252
5353 <target name =" cs" >
54- <exec
55- executable=" vendor/bin/phpcs"
56- logoutput=" true"
57- passthru=" true"
58- checkreturn=" true"
59- >
60- <arg value =" --extensions=php" />
61- <arg value =" --encoding=utf-8" />
62- <arg value =" --tab-width=4" />
63- <arg value =" --ignore=tests/*/data,tests/*/traits" />
64- <arg value =" -sp" />
65- <arg path =" src" />
66- <arg path =" tests" />
67- </exec >
54+ <php expression =" PHP_VERSION_ID >= 70400 ?'true':'false'" returnProperty =" isPHP74" level =" verbose" />
55+ <if >
56+ <equals arg1=" ${ isPHP74 } " arg2=" false" />
57+ <then >
58+ <exec
59+ executable=" vendor/bin/phpcs"
60+ logoutput=" true"
61+ passthru=" true"
62+ checkreturn=" true"
63+ >
64+ <arg value =" --extensions=php" />
65+ <arg value =" --encoding=utf-8" />
66+ <arg value =" --tab-width=4" />
67+ <arg value =" --ignore=tests/*/data,tests/*/traits" />
68+ <arg value =" -sp" />
69+ <arg path =" src" />
70+ <arg path =" tests" />
71+ </exec >
72+ </then >
73+ </if >
6874 </target >
6975
7076 <target name =" cs-fix" >
Original file line number Diff line number Diff line change 1212 "phpstan/phpstan" : " ^0.12" ,
1313 "phpunit/phpunit" : " ^6.3" ,
1414 "slevomat/coding-standard" : " ^4.7.2" ,
15- "squizlabs/php_codesniffer" : " ^3.3.2" ,
1615 "symfony/process" : " ^3.4 || ^4.0" ,
1716 "phpstan/extension-installer" : " ^1.0" ,
1817 "phpstan/phpstan-strict-rules" : " ^0.12"
You can’t perform that action at this time.
0 commit comments