From 776977f597a848b2e89a8551da120f0b7fc86855 Mon Sep 17 00:00:00 2001 From: Matthew Grasmick Date: Mon, 11 Sep 2017 13:53:56 -0400 Subject: [PATCH] Fixing method name. --- src/Composer/Command/RequireCommand.php | 2 +- src/Composer/Command/UpdateCommand.php | 2 +- src/Composer/Installer.php | 2 +- tests/Composer/Test/InstallerTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Composer/Command/RequireCommand.php b/src/Composer/Command/RequireCommand.php index 5946e4d98..4ec17bef5 100644 --- a/src/Composer/Command/RequireCommand.php +++ b/src/Composer/Command/RequireCommand.php @@ -171,7 +171,7 @@ EOT ->setUpdate(true) ->setUpdateWhitelist(array_keys($requirements)) ->setWhitelistNonRootDependencies($input->getOption('update-with-dependencies')) - ->setAllWhitelistDependencies($input->getOption('update-with-all-dependencies')) + ->setWhitelistAllDependencies($input->getOption('update-with-all-dependencies')) ->setIgnorePlatformRequirements($input->getOption('ignore-platform-reqs')) ->setPreferStable($input->getOption('prefer-stable')) ->setPreferLowest($input->getOption('prefer-lowest')) diff --git a/src/Composer/Command/UpdateCommand.php b/src/Composer/Command/UpdateCommand.php index fb2e36834..5948ca5d7 100644 --- a/src/Composer/Command/UpdateCommand.php +++ b/src/Composer/Command/UpdateCommand.php @@ -147,7 +147,7 @@ EOT ->setUpdate(true) ->setUpdateWhitelist($input->getOption('lock') ? array('lock') : $packages) ->setWhitelistNonRootDependencies($input->getOption('with-dependencies')) - ->setAllWhitelistDependencies($input->getOption('with-all-dependencies')) + ->setWhitelistAllDependencies($input->getOption('with-all-dependencies')) ->setIgnorePlatformRequirements($input->getOption('ignore-platform-reqs')) ->setPreferStable($input->getOption('prefer-stable')) ->setPreferLowest($input->getOption('prefer-lowest')) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 1f8b135cc..0bfe450f5 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -1680,7 +1680,7 @@ class Installer * @param bool $updateAllDependencies * @return Installer */ - public function setAllWhitelistDependencies($updateAllDependencies = true) + public function setWhitelistAllDependencies($updateAllDependencies = true) { $this->whitelistAllDependencies = (bool) $updateAllDependencies; diff --git a/tests/Composer/Test/InstallerTest.php b/tests/Composer/Test/InstallerTest.php index 57d666189..9d900095a 100644 --- a/tests/Composer/Test/InstallerTest.php +++ b/tests/Composer/Test/InstallerTest.php @@ -225,7 +225,7 @@ class InstallerTest extends TestCase ->setDryRun($input->getOption('dry-run')) ->setUpdateWhitelist($input->getArgument('packages')) ->setWhitelistNonRootDependencies($input->getOption('with-dependencies')) - ->setAllWhitelistDependencies($input->getOption('with-all-dependencies')) + ->setWhitelistAllDependencies($input->getOption('with-all-dependencies')) ->setPreferStable($input->getOption('prefer-stable')) ->setPreferLowest($input->getOption('prefer-lowest')) ->setIgnorePlatformRequirements($input->getOption('ignore-platform-reqs'));