Skip to content

Commit

Permalink
Merge branch '4.1' into 4
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jun 19, 2024
2 parents 558053e + 2e47159 commit bf09846
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 bf09846

Please sign in to comment.