Skip to content

Commit

Permalink
Composer: set minimum PHPCS 3.x version to ^3.1.0
Browse files Browse the repository at this point in the history
When `installed_paths` is set via a custom, the PHPCS native autoloader cannot find non-sniff files provided by an external standard, including the PHPCSUtils files.

As PHPCS 3.0.2 is rarely used anymore anyway, let's just not support it.

Ref: squizlabs/PHP_CodeSniffer#1591
  • Loading branch information
jrfnl committed Nov 5, 2019
1 parent 0c0e832 commit 4133c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"require" : {
"php" : ">=5.4",
"squizlabs/php_codesniffer" : "^2.6.0 || ^3.0.2",
"squizlabs/php_codesniffer" : "^2.6.0 || ^3.1.0",
"dealerdirect/phpcodesniffer-composer-installer" : "^0.5"
},
"require-dev" : {
Expand Down

0 comments on commit 4133c54

Please sign in to comment.