Skip to content

Commit

Permalink
Fixed wrong uid increment position
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Opitz committed May 20, 2016
1 parent a0ddf1a commit 3ec64f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Composer/Satis/Builder/PackagesBuilder.php
Expand Up @@ -72,15 +72,14 @@ public function dump(array $packages)
$i = 1;
foreach ($packagesByName as $packageName => $versionPackages) {
foreach ($versionPackages as $version => &$versionPackage) {
$versionPackage['uid'] = $i;
$versionPackage['uid'] = $i++;
}
$includes = $this->dumpPackageIncludeJson(
array($packageName => $versionPackages),
str_replace('%package%', $packageName, $providersUrl),
'sha256'
);
$repo['providers'][$packageName] = current($includes);
$i++;
}
} else {
$repo['includes'] = $this->dumpPackageIncludeJson($packagesByName, 'include/all$%hash%.json');
Expand Down

0 comments on commit 3ec64f6

Please sign in to comment.