1
0
Fork 0

Skip platform packages from the lock file

This should maybe be done in a better way, but it'll do for now.
pull/41/merge
Jordi Boggiano 2011-10-02 19:55:45 +02:00
parent cc769af923
commit 9e3c2a7e22
1 changed files with 4 additions and 0 deletions

View File

@ -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