Skip to content

Commit

Permalink
ENH Use class name instead of self
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jun 5, 2024
1 parent 8f4969b commit 94ba665
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 94ba665

Please sign in to comment.