Skip to content

Commit df76491

Browse files
committed
Update version of Composer PHPCS plugin
The DealerDirect Composer plugin has released version `0.7.0` a few months ago, which is compatible with Composer 2.x. As Composer 2.0 has just been released, we should make sure not to recommend installing an older version of the plugin than `0.7.0`. We also need to make sure we use the right version of the plugin ourselves in the `require-dev`. As Composer treats minors < 1.0 as majors, updating to this version requires an update to the `composer.json` requirements. > For pre-1.0 versions it also acts with safety in mind and treats ^0.3 as >=0.3.0 <0.4.0. Refs: * https://github.com/Dealerdirect/phpcodesniffer-composer-installer/releases/tag/v0.7.0 * https://getcomposer.org/doc/articles/versions.md#caret-version-range-
1 parent 47012e8 commit df76491

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The only supported installation method is via [Composer](https://getcomposer.org
3232

3333
If you don't have a Composer plugin installed to manage the `installed_paths` setting for PHP_CodeSniffer, run the following from the command-line:
3434
```bash
35-
composer require --dev dealerdirect/phpcodesniffer-composer-installer:^0.6 phpcompatibility/phpcompatibility-passwordcompat:*
35+
composer require --dev dealerdirect/phpcodesniffer-composer-installer:"^0.7" phpcompatibility/phpcompatibility-passwordcompat:*
3636
composer install
3737
```
3838

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
"phpcompatibility/php-compatibility" : "^9.0"
2222
},
2323
"require-dev" : {
24-
"dealerdirect/phpcodesniffer-composer-installer": "^0.6",
24+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
2525
"ircmaxell/password-compat": "dev-master"
2626
},
2727
"suggest" : {
28-
"dealerdirect/phpcodesniffer-composer-installer": "^0.6 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
28+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
2929
"roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
3030
},
3131
"prefer-stable" : true

0 commit comments

Comments
 (0)