1
0
Fork 0

Fix a few bugs, fixes #1867

pull/1871/head
Jordi Boggiano 2013-05-06 11:31:22 +02:00
parent 976fe48a72
commit 8a06e461e5
3 changed files with 5 additions and 5 deletions

View File

@ -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);
}

View File

@ -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]);
});
}

View File

@ -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();