Browse Source

Set the platform overrides first

nevvermind 9 years ago
parent
commit
ec00a4dbfa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Repository/PlatformRepository.php

+ 1 - 1
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()