Skip to content

Commit 3ed51dd

Browse files
committed
Fix undefined index in package resolver
1 parent 803c496 commit 3ed51dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PackageResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private function parseVersion(string $package, string $version, bool $isRequire)
9898
try {
9999
$config = @json_decode(file_get_contents(Factory::getComposerFile()), true);
100100
} finally {
101-
if (!$isRequire || !($config['extra']['symfony']['require'] || isset($config['require']['symfony/framework-bundle']))) {
101+
if (!$isRequire || !(isset($config['extra']['symfony']['require']) || isset($config['require']['symfony/framework-bundle']))) {
102102
return '';
103103
}
104104
}

0 commit comments

Comments
 (0)