1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-08 16:17:37 +00:00

Error out on recursive links in validating loader and ignore them in regular loader

This commit is contained in:
Jordi Boggiano 2021-11-10 11:07:44 +01:00
parent bd4d624cc7
commit b09a39f9c8
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
4 changed files with 21 additions and 1 deletions

View file

@ -354,6 +354,15 @@ class ValidatingArrayLoaderTest extends TestCase
'source.url : must not start with a "-", "--foo" given',
),
),
array(
array(
'name' => 'foo/bar',
'require' => array('foo/Bar' => '1.*'),
),
array(
'require.foo/Bar : a package cannot set a require on itself',
),
),
));
}