diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 079a5a6e5..57680600c 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -196,7 +196,9 @@ class Installer // create installed repo, this contains all local packages + platform packages (php & extensions) $localRepo = $this->repositoryManager->getLocalRepository(); - $platformRepo = new PlatformRepository($this->config->get('platform')); + $platformOverride = $this->config->get('platform'); + $platformOverride = is_array($platformOverride) ? $platformOverride : array(); + $platformRepo = new PlatformRepository($platformOverride); $repos = array( $localRepo, new InstalledArrayRepository(array($installedRootPackage)),