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

ValidatingArrayLoader: fix link validation with missing name (#11830)

This commit is contained in:
Stephan 2024-02-06 16:18:41 +00:00 committed by GitHub
parent e88c7a8987
commit 9a656854ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -426,6 +426,12 @@ class ValidatingArrayLoaderTest extends TestCase
],
['replace.0 : invalid version constraint (Could not parse version constraint acme/bar: Invalid version string "acme/bar")'],
],
[
[
'require' => ['acme/bar' => '^1.0']
],
['name : must be present'],
]
]);
}