PHPCompatibility / PHPCompatibilityWP

PHPCompatibility ruleset for WordPress projects
GNU Lesser General Public License v3.0
179 stars 11 forks source link

Update version of Composer PHPCS plugin #23

Closed jrfnl closed 4 years ago

jrfnl commented 4 years ago

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: