Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Commit

Permalink
Add php compatibility check (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 authored Dec 24, 2022
1 parent 6f44373 commit 64f803e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?xml version="1.0"?>
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
<rule ref="./vendor/phpcompatibility/php-compatibility/PHPCompatibility" />
<config name="testVersion" value="8.0-8.1" />
<file>.</file>
<arg name="extensions" value="php,inc" />
<arg name="encoding" value="UTF-8" />
Expand Down
9 changes: 8 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"mediawiki/mediawiki-phan-config": "0.11.1",
"mediawiki/minus-x": "1.1.1",
"php-parallel-lint/php-console-highlighter": "1.0.0",
"php-parallel-lint/php-parallel-lint": "1.3.2"
"php-parallel-lint/php-parallel-lint": "1.3.2",
"phpcompatibility/php-compatibility": "9.3.5",
"dealerdirect/phpcodesniffer-composer-installer": "0.7.2"
},
"scripts": {
"fix": [
Expand All @@ -19,5 +21,10 @@
"phpcs -p -s",
"minus-x check ."
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}

0 comments on commit 64f803e

Please sign in to comment.