Skip to content

Commit

Permalink
Use phpcompatibility/php-compatibility instead of php -l for the lint…
Browse files Browse the repository at this point in the history
…ing checks. (#17)
  • Loading branch information
greg-1-anderson authored Dec 2, 2022
1 parent 00ac22b commit 6fb32b4
Show file tree
Hide file tree
Showing 2 changed files with 259 additions and 118 deletions.
12 changes: 7 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
"guzzlehttp/guzzle": "^7.0.1",
"http-interop/http-factory-guzzle": "^1.0",
"phpunit/phpunit": "^9",
"squizlabs/php_codesniffer": "^3"
"squizlabs/php_codesniffer": "^3",
"dealerdirect/phpcodesniffer-composer-installer":"^0.7",
"phpcompatibility/php-compatibility":">=1@stable"
},
"scripts": {
"customize": [
Expand All @@ -43,10 +45,7 @@
"cs": "phpcs --standard=PSR2 -n src",
"cbf": "phpcbf --standard=PSR2 -n src",
"unit": "phpunit --colors=always",
"lint": [
"find src -name '*.php' -print0 | xargs -0 -n1 php -l",
"find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
],
"lint": "phpcs -p src tests/src --standard=PHPCompatibility --runtime-set testVersion 8.0-",
"test": [
"@lint",
"@unit",
Expand All @@ -64,6 +63,9 @@
"sort-packages": true,
"platform": {
"php": "8.0.24"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"extra": {
Expand Down
Loading

0 comments on commit 6fb32b4

Please sign in to comment.