1
0
Fork 0

Support parsing stability flags on complex constraints

Fixes #3570
pull/3583/head
Christophe Coevoet 2014-12-22 12:31:34 +01:00
parent 267af928df
commit d8813341c3
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ class RootPackageLoader extends ArrayLoader
$minimumStability = $stabilities[$minimumStability]; $minimumStability = $stabilities[$minimumStability];
foreach ($requires as $reqName => $reqVersion) { foreach ($requires as $reqName => $reqVersion) {
// parse explicit stability flags to the most unstable // parse explicit stability flags to the most unstable
if (preg_match('{^[^,\s]*?@('.implode('|', array_keys($stabilities)).')$}i', $reqVersion, $match)) { if (preg_match('{^[^@]*?@('.implode('|', array_keys($stabilities)).')$}i', $reqVersion, $match)) {
$name = strtolower($reqName); $name = strtolower($reqName);
$stability = $stabilities[VersionParser::normalizeStability($match[1])]; $stability = $stabilities[VersionParser::normalizeStability($match[1])];