Skip to content

Commit c1ce9b7

Browse files
committed
:octocat: PHPCS: added PHPCompatibility standard
1 parent fc47c7b commit c1ce9b7

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
},
4747
"require-dev": {
4848
"chillerlan/php-authenticator": "^4.3.1 || ^5.2.1",
49+
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
4950
"phan/phan": "^5.4",
51+
"phpcompatibility/php-compatibility": "10.x-dev",
5052
"phpunit/phpunit": "^9.6",
5153
"phpmd/phpmd": "^2.15",
5254
"setasign/fpdf": "^1.8.2",

phpcs.xml.dist

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,30 @@
99
<file>src</file>
1010
<file>tests</file>
1111

12+
<arg value="ps"/>
13+
<arg name="parallel" value="8"/>
14+
<arg name="cache" value=".build/phpcs.cache"/>
15+
1216
<arg name="basepath" value="."/>
1317
<arg name="extensions" value="php"/>
1418
<arg name="tab-width" value="4"/>
1519

20+
<config name="installed_paths" value="../../phpcompatibility/php-compatibility,../../phpcsstandards/phpcsutils,../../slevomat/coding-standard"/>
21+
1622
<rule ref="Internal.Tokenizer.Exception">
1723
<type>error</type>
1824
</rule>
1925

26+
<!--
27+
PHPCompatibility https://github.com/PHPCompatibility/PHPCompatibility
28+
-->
29+
<config name="testVersion" value="7.4-"/>
30+
<rule ref="PHPCompatibility"/>
31+
2032
<!--
2133
Slevomat https://github.com/slevomat/coding-standard
2234
-->
2335

24-
<config name="installed_paths" value="../../slevomat/coding-standard"/>
2536
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
2637
<rule ref="SlevomatCodingStandard.Arrays.DisallowImplicitArrayCreation"/>
2738
<rule ref="SlevomatCodingStandard.Arrays.DisallowPartiallyKeyed"/>

0 commit comments

Comments
 (0)