Commit 8e14e45b authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen

[BUGFIX] Have version from Packagist with v in tag, e.g. v4.2.3, included as well

parent 43a18d09
Pipeline #10184 failed
......@@ -113,6 +113,8 @@ class PackagistCommand extends Command
$downloadData = json_decode(file_get_contents($packagistUrl, false, $context), true);
foreach ($downloadData['package']['downloads']['versions'] as $version => $downloads) {
// To ensure packagist version with "v" in tag also gets counted e.g. v4.2.3 is 4.2.3 in TER.
$version = preg_replace('#v#', '', $version);
$versionFound = $this->versionRepository->findOneByExtensionAndVersionString($extension, $version);
if (null === $versionFound) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment