Fix var override, fixes #1061
parent
2b06503027
commit
f18839c350
|
@ -131,8 +131,8 @@ class Pool
|
||||||
$alias['root_alias'] = true;
|
$alias['root_alias'] = true;
|
||||||
$this->packages[] = $alias;
|
$this->packages[] = $alias;
|
||||||
|
|
||||||
foreach (array_keys($names) as $name) {
|
foreach (array_keys($names) as $provided) {
|
||||||
$this->packageByName[$name][] =& $this->packages[$this->id - 2];
|
$this->packageByName[$provided][] =& $this->packages[$this->id - 2];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -146,8 +146,8 @@ class Pool
|
||||||
$alias['id'] = $this->id++;
|
$alias['id'] = $this->id++;
|
||||||
$this->packages[] = $alias;
|
$this->packages[] = $alias;
|
||||||
|
|
||||||
foreach (array_keys($names) as $name) {
|
foreach (array_keys($names) as $provided) {
|
||||||
$this->packageByName[$name][] =& $this->packages[$this->id - 2];
|
$this->packageByName[$provided][] =& $this->packages[$this->id - 2];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -160,8 +160,8 @@ class Pool
|
||||||
$package->setId($this->id++);
|
$package->setId($this->id++);
|
||||||
$this->packages[] = $package;
|
$this->packages[] = $package;
|
||||||
|
|
||||||
foreach ($package->getNames() as $name) {
|
foreach ($package->getNames() as $provided) {
|
||||||
$this->packageByName[$name][] = $package;
|
$this->packageByName[$provided][] = $package;
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle root package aliases
|
// handle root package aliases
|
||||||
|
|
Loading…
Reference in New Issue