Skip to content

Commit

Permalink
Add PHP syntax checks for supported versions (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal committed Apr 16, 2024
1 parent 82b9f82 commit 2f65e4f
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 2 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"ext-libxml": "*",
"editorconfig-checker/editorconfig-checker": "^10.3.0",
"ergebnis/composer-normalize": "^2.19",
"phpcompatibility/php-compatibility": "^9.3",
"phpstan/phpstan": "^1.10.63",
"phpstan/phpstan-phpunit": "^1.1.1",
"phpstan/phpstan-strict-rules": "^1.2.3",
Expand Down
64 changes: 63 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@

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

<config name="installed_paths" value="../../slevomat/coding-standard"/>
<config name="installed_paths" value="vendor/slevomat/coding-standard,vendor/phpcompatibility/php-compatibility"/>
<config name="php_version" value="70200"/>
<config name="testVersion" value="7.2-"/>

<rule ref="PHPCompatibility"/>

<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.Classes.DuplicateClassName"/>
Expand Down

0 comments on commit 2f65e4f

Please sign in to comment.