Skip to content

Commit 0ae638c

Browse files
committed
Requiring PHP_CodeSniffer ^2.5.0 to secure interoperability
1 parent ecfeb2d commit 0ae638c

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -242,16 +242,6 @@ vendor/bin/phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-
242242

243243
If you don't want to follow the whole standard, but find a handful of included sniffs useful, you can use them selectively.
244244

245-
Besides requiring `slevomat/coding-standard` in composer.json, require also PHP_CodeSniffer in desired version:
246-
247-
```JSON
248-
{
249-
"require-dev": {
250-
"squizlabs/php_codesniffer": "2.5.0"
251-
}
252-
}
253-
```
254-
255245
You can choose one of two ways to run only selected sniffs from the standard on your codebase:
256246

257247
### List all sniffs to run

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
},
88
"require": {
99
"php": "^5.6|^7.0",
10-
"jakub-onderka/php-parallel-lint": "~0.8"
10+
"jakub-onderka/php-parallel-lint": "~0.8",
11+
"squizlabs/php_codesniffer": "^2.5.0"
1112
},
1213
"require-dev": {
1314
"consistence/coding-standard": "^0.10.1",

0 commit comments

Comments
 (0)