You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was squashed before being merged into the 1.x branch.
Discussion
----------
[Flex] Fix Composer update exception when flex://defaults missing
Q | A
-- | --
Branch? | 1.x
Bug fix? | yes
New feature? | no
Deprecations? | no
Tickets | Fix#836
License | MIT
Doc PR | -
Commits
-------
767b8c0 [Flex] Fix Composer update exception when flex://defaults missing
Copy file name to clipboardExpand all lines: src/Cache.php
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,9 @@ private function getVersions(): array
130
130
$this->downloader = null;
131
131
$okVersions = [];
132
132
133
+
if (!isset($versions['splits'])) {
134
+
thrownew \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?');
Copy file name to clipboardExpand all lines: src/PackageFilter.php
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,9 @@ private function getVersions(): array
122
122
$this->downloader = null;
123
123
$okVersions = [];
124
124
125
+
if (!isset($versions['splits'])) {
126
+
thrownew \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?');
0 commit comments