mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +00:00
Removed passing of parameters with default value
This commit is contained in:
parent
cda6e8bea6
commit
002fd39bc6
17 changed files with 33 additions and 33 deletions
|
@ -211,7 +211,7 @@ EOT
|
|||
->setOptimizeAutoloader($optimize)
|
||||
->setClassMapAuthoritative($authoritative)
|
||||
->setApcuAutoloader($apcu)
|
||||
->setUpdate(true)
|
||||
->setUpdate()
|
||||
->setInstall(!$input->getOption('no-install'))
|
||||
->setUpdateMirrors($updateMirrors)
|
||||
->setUpdateAllowList($packages)
|
||||
|
@ -284,7 +284,7 @@ EOT
|
|||
if ($io->askConfirmation(sprintf(
|
||||
'Would you like to continue and update the above package%s [<comment>yes</comment>]? ',
|
||||
1 === count($packages) ? '' : 's'
|
||||
), true)) {
|
||||
))) {
|
||||
return $packages;
|
||||
}
|
||||
|
||||
|
@ -295,7 +295,7 @@ EOT
|
|||
{
|
||||
$parser = new VersionParser;
|
||||
$oldPrettyString = $link->getConstraint()->getPrettyString();
|
||||
$newConstraint = MultiConstraint::create(array($link->getConstraint(), $parser->parseConstraints($constraint)), true);
|
||||
$newConstraint = MultiConstraint::create(array($link->getConstraint(), $parser->parseConstraints($constraint)));
|
||||
$newConstraint->setPrettyString($oldPrettyString.', '.$constraint);
|
||||
return new Link(
|
||||
$link->getSource(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue