Skip to content

Commit 07b82fa

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 12874ae commit 07b82fa

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

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

5454
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:
5555
```bash
56-
composer require --dev dealerdirect/phpcodesniffer-composer-installer:^0.6 phpcompatibility/phpcompatibility-symfony:*
56+
composer require --dev dealerdirect/phpcodesniffer-composer-installer:"^0.7" phpcompatibility/phpcompatibility-symfony:*
5757
composer install
5858
```
5959

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"phpcompatibility/phpcompatibility-passwordcompat" : "^1.0"
2424
},
2525
"require-dev" : {
26-
"dealerdirect/phpcodesniffer-composer-installer": "^0.6",
26+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
2727
"symfony/polyfill-php54": "dev-master",
2828
"symfony/polyfill-php55": "dev-master",
2929
"symfony/polyfill-php56": "dev-master",
@@ -34,7 +34,7 @@
3434
"symfony/polyfill-php74": "dev-master"
3535
},
3636
"suggest" : {
37-
"dealerdirect/phpcodesniffer-composer-installer": "^0.6 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
37+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
3838
"roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
3939
},
4040
"prefer-stable" : true

0 commit comments

Comments
 (0)