Skip to content

Commit

Permalink
Merge pull request #90 from creative-commoners/pulls/4.1/remove-self
Browse files Browse the repository at this point in the history
ENH Use class name instead of self
  • Loading branch information
GuySartorelli authored Jun 16, 2024
2 parents 8f4969b + 94ba665 commit 2e47159
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 2e47159

Please sign in to comment.