Browse Source

Skip platform packages from the lock file

This should maybe be done in a better way, but it'll do for now.
Jordi Boggiano 13 years ago
parent
commit
9e3c2a7e22
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/Composer/Package/Locker.php

+ 4 - 0
src/Composer/Package/Locker.php

@@ -88,6 +88,10 @@ class Locker
             $name    = $package->getName();
             $version = $package->getVersion();
 
+            if ('php' === $name || preg_match('{^ext-[a-z0-9_-]+$}', $name)) {
+                continue;
+            }
+
             if (!$name || !$version) {
                 throw new \LogicException(sprintf(
                     'Package "%s" has no version or name and can not be locked', $package