Skip to content

Commit

Permalink
Merge pull request #76 from MarioRadu/fix-package-versions-from-compo…
Browse files Browse the repository at this point in the history
…ser-files

Specified array structure after merging packages list
  • Loading branch information
Ocramius authored Mar 28, 2023
2 parents e34bd6e + a9d8651 commit 599a574
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/PackageVersions.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ static function ($filename): array {
return new self($allPackageLists ? array_shift($allPackageLists) : []);
}

return new self(array_merge(...$allPackageLists));
/** @var array<string, string> $mergedPackagesList */
$mergedPackagesList = array_merge(...$allPackageLists);

return new self($mergedPackagesList);
}

/**
Expand Down

0 comments on commit 599a574

Please sign in to comment.