Bail out if root package attempts to include itself.
parent
593b88e414
commit
a48159b283
|
@ -113,6 +113,9 @@ class RootPackageLoader extends ArrayLoader
|
|||
}
|
||||
}
|
||||
|
||||
if (isset($links[$config['name']]))
|
||||
throw new \InvalidArgumentException(sprintf('Root package \'%s\' cannot require itself in its composer.json', $config['name']));
|
||||
|
||||
$realPackage->setAliases($aliases);
|
||||
$realPackage->setStabilityFlags($stabilityFlags);
|
||||
$realPackage->setReferences($references);
|
||||
|
|
Loading…
Reference in New Issue