diff --git a/src/Composer/Command/CreateProjectCommand.php b/src/Composer/Command/CreateProjectCommand.php index b3bff893e..70569522d 100644 --- a/src/Composer/Command/CreateProjectCommand.php +++ b/src/Composer/Command/CreateProjectCommand.php @@ -234,7 +234,7 @@ EOT ->setApcuAutoloader($config->get('apcu-autoloader')); if (!$composer->getLocker()->isLocked()) { - $installer->setUpdate(); + $installer->setUpdate(true); } if ($disablePlugins) { diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index cdbe72473..8ed6f8af8 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -991,7 +991,7 @@ class Installer * @param bool $optimizeAutoloader * @return Installer */ - public function setOptimizeAutoloader($optimizeAutoloader = false) + public function setOptimizeAutoloader($optimizeAutoloader) { $this->optimizeAutoloader = (bool) $optimizeAutoloader; if (!$this->optimizeAutoloader) { @@ -1010,7 +1010,7 @@ class Installer * @param bool $classMapAuthoritative * @return Installer */ - public function setClassMapAuthoritative($classMapAuthoritative = false) + public function setClassMapAuthoritative($classMapAuthoritative) { $this->classMapAuthoritative = (bool) $classMapAuthoritative; if ($this->classMapAuthoritative) { @@ -1028,7 +1028,7 @@ class Installer * @param string|null $apcuAutoloaderPrefix * @return Installer */ - public function setApcuAutoloader($apcuAutoloader = false, $apcuAutoloaderPrefix = null) + public function setApcuAutoloader($apcuAutoloader, $apcuAutoloaderPrefix = null) { $this->apcuAutoloader = $apcuAutoloader; $this->apcuAutoloaderPrefix = $apcuAutoloaderPrefix; @@ -1042,7 +1042,7 @@ class Installer * @param bool $update * @return Installer */ - public function setUpdate($update = true) + public function setUpdate($update) { $this->update = (bool) $update; @@ -1055,7 +1055,7 @@ class Installer * @param bool $install * @return Installer */ - public function setInstall($install = true) + public function setInstall($install) { $this->install = (bool) $install; @@ -1151,7 +1151,7 @@ class Installer * @param bool|array $ignorePlatformReqs * @return Installer */ - public function setIgnorePlatformRequirements($ignorePlatformReqs = false) + public function setIgnorePlatformRequirements($ignorePlatformReqs) { if (is_array($ignorePlatformReqs)) { $this->ignorePlatformReqs = array_filter($ignorePlatformReqs, function ($req) {