Skip to content

Commit 3dbfa5c

Browse files
Merge branch '1.x' into 2.x
* 1.x: [Flex] Fix Composer update exception when flex://defaults missing
2 parents cc9241d + 7a79135 commit 3dbfa5c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PackageFilter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ private function getVersions(): array
122122
$this->downloader = null;
123123
$okVersions = [];
124124

125+
if (!isset($versions['splits'])) {
126+
throw new \LogicException('The Flex index is missing a "splits" entry. Did you forget to add "flex://defaults" in the "extra.symfony.endpoint" array of your composer.json?');
127+
}
125128
foreach ($versions['splits'] as $name => $vers) {
126129
foreach ($vers as $i => $v) {
127130
if (!isset($okVersions[$v])) {

0 commit comments

Comments
 (0)