From e753bf08b1cd3c2438a7e9aca0b94f5957626704 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 4 Dec 2018 09:34:32 +0100 Subject: [PATCH] Minor tweaks --- composer.lock | 2 +- src/Composer/DependencyResolver/Solver.php | 1 + src/Composer/Repository/ComposerRepository.php | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/composer.lock b/composer.lock index 63b8033b9..a22e11a6b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "d356b92e869790db1e9d2c0f4b10935e", + "content-hash": "3243ce6f26231df34d1bceab1a148803", "packages": [ { "name": "composer/ca-bundle", diff --git a/src/Composer/DependencyResolver/Solver.php b/src/Composer/DependencyResolver/Solver.php index aa5432188..c3128c6c4 100644 --- a/src/Composer/DependencyResolver/Solver.php +++ b/src/Composer/DependencyResolver/Solver.php @@ -217,6 +217,7 @@ class Solver $this->setupInstalledMap(); + $this->io->writeError('Generating rules', true, IOInterface::DEBUG); $this->ruleSetGenerator = new RuleSetGenerator($this->policy, $this->pool); $this->rules = $this->ruleSetGenerator->getRulesFor($this->jobs, $this->installedMap, $ignorePlatformReqs); $this->checkForRootRequireProblems($ignorePlatformReqs); diff --git a/src/Composer/Repository/ComposerRepository.php b/src/Composer/Repository/ComposerRepository.php index 101c23bcb..a491bec72 100644 --- a/src/Composer/Repository/ComposerRepository.php +++ b/src/Composer/Repository/ComposerRepository.php @@ -527,6 +527,8 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito // TODO what if not, then throw? if ($this->lazyProvidersUrl) { foreach ($packageNames as $name => $constraint) { + $name = strtolower($name); + // skip platform packages, root package and composer-plugin-api if (preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $name) || '__root__' === $name || 'composer-plugin-api' === $name) { continue;