Fix a few bugs, fixes #1867
parent
976fe48a72
commit
8a06e461e5
|
@ -95,7 +95,7 @@ EOT
|
|||
$repos = new CompositeRepository(array_merge(array($localRepo), $composer->getRepositoryManager()->getRepositories()));
|
||||
} else {
|
||||
$defaultRepos = Factory::createDefaultRepositories($this->getIO());
|
||||
$output->writeln('No composer.json found in the current directory, searching packages from ' . implode(', ', array_keys($defaultRepos)));
|
||||
$io->write('No composer.json found in the current directory, searching packages from ' . implode(', ', array_keys($defaultRepos)));
|
||||
$repos = new CompositeRepository($defaultRepos);
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ class JsonConfigSource implements ConfigSourceInterface
|
|||
*/
|
||||
public function addLink($type, $name, $value)
|
||||
{
|
||||
$this->manipulateJson('addLink', $type, $name, $value, function (&$config, $key) {
|
||||
$this->manipulateJson('addLink', $type, $name, $value, function (&$config, $type, $name, $value) {
|
||||
$config[$type][$name] = $value;
|
||||
});
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ class JsonConfigSource implements ConfigSourceInterface
|
|||
*/
|
||||
public function removeLink($type, $name)
|
||||
{
|
||||
$this->manipulateJson('removeSubNode', $type, $name, function (&$config, $key) {
|
||||
$this->manipulateJson('removeSubNode', $type, $name, function (&$config, $type, $name) {
|
||||
unset($config[$type][$name]);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -194,7 +194,7 @@ class PearPackageExtractor
|
|||
}
|
||||
}
|
||||
|
||||
private function buildSourceList10($children, $targetRoles, $source = '', $target = '', $role = null, $packageName)
|
||||
private function buildSourceList10($children, $targetRoles, $source, $target, $role, $packageName)
|
||||
{
|
||||
$result = array();
|
||||
|
||||
|
@ -224,7 +224,7 @@ class PearPackageExtractor
|
|||
return $result;
|
||||
}
|
||||
|
||||
private function buildSourceList20($children, $targetRoles, $source = '', $target = '', $role = null, $packageName)
|
||||
private function buildSourceList20($children, $targetRoles, $source, $target, $role, $packageName)
|
||||
{
|
||||
$result = array();
|
||||
|
||||
|
|
Loading…
Reference in New Issue