Skip to content

Commit ccc4d2d

Browse files
bug #1049 Don't copy constraint from framework-bundle when installing a new symfony package (nicolas-grekas)
This PR was merged into the 2.x branch. Discussion ---------- Don't copy constraint from framework-bundle when installing a new symfony package Fix #989 Commits ------- 39ff4d5 Dont copy constraint from framework-bundle when installing a new symfony package
2 parents 21937a8 + 39ff4d5 commit ccc4d2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PackageResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ public function parseVersion(string $package, string $version, bool $isRequire):
6868
try {
6969
$config = @json_decode(file_get_contents(Factory::getComposerFile()), true);
7070
} finally {
71-
if (!$isRequire || !(isset($config['extra']['symfony']['require']) || isset($config['require']['symfony/framework-bundle']))) {
71+
if (!$isRequire || !isset($config['extra']['symfony']['require'])) {
7272
return '';
7373
}
7474
}
75-
$version = $config['extra']['symfony']['require'] ?? $config['require']['symfony/framework-bundle'];
75+
$version = $config['extra']['symfony']['require'];
7676
} elseif ('dev' === $version) {
7777
$version = '^'.$versions['dev-name'].'@dev';
7878
} elseif ('next' === $version) {

0 commit comments

Comments
 (0)