Skip to content

Commit

Permalink
Composer: raise the minimum supported PHPCS version to 3.8.0
Browse files Browse the repository at this point in the history
... to prevent end-users from running into trouble with the name change.

The files in the Composer `vendor/bin` will only be replaced when the `replace...` directive is found and that is only available in the 3.8.0 tag.
When the files in the Composer `vendor/bin` are not replaced, they will continue to point to the `vendor/squizlabs/php_codesniffer` directory which will no longer exist, leading to fatal "File not found" errors for end-users trying to run PHPCS/PHPCBF.
  • Loading branch information
jrfnl committed Dec 1, 2023
1 parent 5b81a09 commit b2e480f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Minimum Requirements
-------------------------------------------

* PHP 5.4 or higher.
* [PHP_CodeSniffer][phpcs-gh] version **3.7.1** or higher.
* [PHP_CodeSniffer][phpcs-gh] version **3.8.0** or higher.
* [PHPCSUtils][phpcsutils-gh] version **1.0.8** or higher.


Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"require" : {
"php" : ">=5.4",
"phpcsstandards/php_codesniffer" : "^3.7.1",
"phpcsstandards/php_codesniffer" : "^3.8.0",
"phpcsstandards/phpcsutils" : "^1.0.8"
},
"require-dev" : {
Expand Down

0 comments on commit b2e480f

Please sign in to comment.