mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Warn on exact/overly strict constraints, fixes #2746
This commit is contained in:
parent
e4711326a4
commit
76350676b5
2 changed files with 11 additions and 1 deletions
|
@ -314,6 +314,7 @@ class ValidatingArrayLoaderTest extends \PHPUnit_Framework_TestCase
|
|||
'bar/baz' => '>=1.0',
|
||||
'bar/foo' => 'dev-master',
|
||||
'bar/hacked' => '@stable',
|
||||
'bar/woo' => '1.0.0',
|
||||
),
|
||||
),
|
||||
array(
|
||||
|
@ -321,6 +322,7 @@ class ValidatingArrayLoaderTest extends \PHPUnit_Framework_TestCase
|
|||
'require.bar/baz : unbound version constraints (>=1.0) should be avoided',
|
||||
'require.bar/foo : unbound version constraints (dev-master) should be avoided',
|
||||
'require.bar/hacked : unbound version constraints (@stable) should be avoided',
|
||||
'require.bar/woo : exact version constraints (1.0.0) should be avoided if the package follows semantic versioning',
|
||||
),
|
||||
false,
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue