Skip to content

Commit 2f65e4f

Browse files
authored
Add PHP syntax checks for supported versions (#122)
1 parent 82b9f82 commit 2f65e4f

File tree

3 files changed

+68
-2
lines changed

3 files changed

+68
-2
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"ext-libxml": "*",
2929
"editorconfig-checker/editorconfig-checker": "^10.3.0",
3030
"ergebnis/composer-normalize": "^2.19",
31+
"phpcompatibility/php-compatibility": "^9.3",
3132
"phpstan/phpstan": "^1.10.63",
3233
"phpstan/phpstan-phpunit": "^1.1.1",
3334
"phpstan/phpstan-strict-rules": "^1.2.3",

composer.lock

Lines changed: 63 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpcs.xml.dist

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222

2323
<exclude-pattern>tests/data/*</exclude-pattern>
2424

25-
<config name="installed_paths" value="../../slevomat/coding-standard"/>
25+
<config name="installed_paths" value="vendor/slevomat/coding-standard,vendor/phpcompatibility/php-compatibility"/>
2626
<config name="php_version" value="70200"/>
27+
<config name="testVersion" value="7.2-"/>
28+
29+
<rule ref="PHPCompatibility"/>
2730

2831
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
2932
<rule ref="Generic.Classes.DuplicateClassName"/>

0 commit comments

Comments
 (0)