diff --git a/src/UpdateChecker.php b/src/UpdateChecker.php index 2112752..f1720a5 100644 --- a/src/UpdateChecker.php +++ b/src/UpdateChecker.php @@ -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;