PHPCSStandards / composer-installer

Composer installer for PHP_CodeSniffer coding standards
https://packagist.org/packages/dealerdirect/phpcodesniffer-composer-installer
MIT License
559 stars 36 forks source link

Adds PHP_CodeSniffer version constraints #77

Closed frenck closed 6 years ago

frenck commented 6 years ago

Proposed Changes

From TravisCI build ouput:

$ composer validate
./composer.json is valid, but with a few warnings
See https://getcomposer.org/doc/04-schema.md for details on the schema
require.squizlabs/php_codesniffer : unbound version constraints (*) should be avoided

This PR adds version constraints to avoid that warning. Also, this plugin is currently only compatible with 2.x and 3.x of PHP_CodeSniffer.

Related Issues

n/a