Skip to content

Commit

Permalink
Merge branch '4' into 5
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 20, 2024
2 parents da80073 + bf09846 commit b5f069f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/UpdateChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ public function checkForUpdates(PackageInterface $package, $constraint)
];

if ($available = $this->findLatestPackage($package, $constraint, $installedVersion, $composer, true)) {
$updateInformation[self::TYPE_AVAILABLE . 'Version'] = $available->getPrettyVersion();
$updateInformation[self::TYPE_AVAILABLE . 'Hash'] = $available->getSourceReference();
$updateInformation[UpdateChecker::TYPE_AVAILABLE . 'Version'] = $available->getPrettyVersion();
$updateInformation[UpdateChecker::TYPE_AVAILABLE . 'Hash'] = $available->getSourceReference();
}

if ($latest = $this->findLatestPackage($package, $constraint, $installedVersion, $composer, false)) {
$updateInformation[self::TYPE_LATEST . 'Version'] = $latest->getPrettyVersion();
$updateInformation[self::TYPE_LATEST . 'Hash'] = $latest->getSourceReference();
$updateInformation[UpdateChecker::TYPE_LATEST . 'Version'] = $latest->getPrettyVersion();
$updateInformation[UpdateChecker::TYPE_LATEST . 'Hash'] = $latest->getSourceReference();
}

return $updateInformation;
Expand Down

0 comments on commit b5f069f

Please sign in to comment.