mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
If xml have not index channel use uri
This commit is contained in:
parent
9020b7113c
commit
11524fc2c2
1 changed files with 5 additions and 1 deletions
|
@ -228,7 +228,11 @@ class PackageDependencyParser
|
|||
}
|
||||
|
||||
$result = array();
|
||||
foreach ($depItem as $subDepItem) {
|
||||
foreach ($depItem as $key => $subDepItem) {
|
||||
if (!array_key_exists('channel', $subDepItem)) {
|
||||
$depItem[$key]['channel'] = $depItem[$key]['uri'];
|
||||
$subDepItem['channel'] = $subDepItem['uri'];
|
||||
}
|
||||
$depChannelName = $subDepItem['channel'];
|
||||
$depPackageName = $subDepItem['name'];
|
||||
$depVersionConstraint = $this->parse20VersionConstraint($subDepItem);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue