From ec00a4dbfaecad0662c82afd2644f720dd99bef0 Mon Sep 17 00:00:00 2001 From: nevvermind Date: Wed, 3 Jun 2015 00:06:24 +0100 Subject: [PATCH] Set the platform overrides first --- src/Composer/Repository/PlatformRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/PlatformRepository.php b/src/Composer/Repository/PlatformRepository.php index eb4c471ec..5c7bd8a67 100644 --- a/src/Composer/Repository/PlatformRepository.php +++ b/src/Composer/Repository/PlatformRepository.php @@ -35,10 +35,10 @@ class PlatformRepository extends ArrayRepository public function __construct(array $packages = array(), array $overrides = array()) { - parent::__construct($packages); foreach ($overrides as $name => $version) { $this->overrides[strtolower($name)] = array('name' => $name, 'version' => $version); } + parent::__construct($packages); } protected function initialize()