Fix bug loading ~dev in some circumstances
parent
b3f46979b0
commit
424c08d6b2
|
@ -662,7 +662,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
|
||||||
|
|
||||||
// load ~dev versions of the packages as well if needed
|
// load ~dev versions of the packages as well if needed
|
||||||
foreach ($packageNames as $name => $constraint) {
|
foreach ($packageNames as $name => $constraint) {
|
||||||
if ($acceptableStabilities && $stabilityFlags && StabilityFilter::isPackageAcceptable($acceptableStabilities, $stabilityFlags, array($name), 'dev')) {
|
if ($acceptableStabilities === null || $stabilityFlags === null || StabilityFilter::isPackageAcceptable($acceptableStabilities, $stabilityFlags, array($name), 'dev')) {
|
||||||
$packageNames[$name.'~dev'] = $constraint;
|
$packageNames[$name.'~dev'] = $constraint;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue