diff --git a/src/Cache.php b/src/Cache.php index d7a549a0c..47db22d88 100644 --- a/src/Cache.php +++ b/src/Cache.php @@ -69,12 +69,16 @@ public function removeLegacyTags(array $data): array } foreach ($data['packages'] as $name => $versions) { - if (!isset($this->versions['splits'][$name]) || null === $devMasterAlias = $versions['dev-master']['extra']['branch-alias']['dev-master'] ?? null) { + if (!isset($this->versions['splits'][$name])) { continue; } foreach ($versions as $version => $composerJson) { if ('dev-master' === $version) { + if (null === $devMasterAlias = $versions['dev-master']['extra']['branch-alias']['dev-master'] ?? null) { + continue; + } + $normalizedVersion = $this->versionParser->normalize($devMasterAlias); } elseif (!isset($composerJson['version_normalized'])) { continue;