1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Add detection of constraints which do not match anything in validate command, fixes #11802 (#11829)

This commit is contained in:
Jordi Boggiano 2024-02-06 12:57:52 +01:00 committed by GitHub
parent 8a69c0555b
commit 0f70c0a9c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 0 deletions

View file

@ -480,6 +480,20 @@ class ValidatingArrayLoaderTest extends TestCase
],
false,
],
[
[
'name' => 'foo/bar',
'require' => [
'foo/baz' => '>1, <0.5',
'bar/baz' => 'dev-main, >0.5',
],
],
[
'require.foo/baz : this version constraint cannot possibly match anything (>1, <0.5)',
'require.bar/baz : this version constraint cannot possibly match anything (dev-main, >0.5)',
],
false,
],
[
[
'name' => 'foo/bar',