|
@@ -201,16 +201,18 @@ class RootPackageLoader extends ArrayLoader
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
- // infer flags for requirements that have an explicit -dev or -beta version specified but only
|
|
|
- // for those that are more unstable than the minimumStability or existing flags
|
|
|
- $reqVersion = preg_replace('{^([^,\s@]+) as .+$}', '$1', $reqVersion);
|
|
|
- if (preg_match('{^[^,\s@]+$}', $reqVersion) && 'stable' !== ($stabilityName = VersionParser::parseStability($reqVersion))) {
|
|
|
- $name = strtolower($reqName);
|
|
|
- $stability = $stabilities[$stabilityName];
|
|
|
- if ((isset($stabilityFlags[$name]) && $stabilityFlags[$name] > $stability) || ($minimumStability > $stability)) {
|
|
|
- continue;
|
|
|
+ foreach ($constraints as $constraint) {
|
|
|
+ // infer flags for requirements that have an explicit -dev or -beta version specified but only
|
|
|
+ // for those that are more unstable than the minimumStability or existing flags
|
|
|
+ $reqVersion = preg_replace('{^([^,\s@]+) as .+$}', '$1', $constraint);
|
|
|
+ if (preg_match('{^[^,\s@]+$}', $reqVersion) && 'stable' !== ($stabilityName = VersionParser::parseStability($reqVersion))) {
|
|
|
+ $name = strtolower($reqName);
|
|
|
+ $stability = $stabilities[$stabilityName];
|
|
|
+ if ((isset($stabilityFlags[$name]) && $stabilityFlags[$name] > $stability) || ($minimumStability > $stability)) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ $stabilityFlags[$name] = $stability;
|
|
|
}
|
|
|
- $stabilityFlags[$name] = $stability;
|
|
|
}
|
|
|
}
|
|
|
|