parent
267af928df
commit
d8813341c3
|
@ -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])];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue