From 94ba6652ff98e20fdc3bfdb8609c1327b30dbfe9 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 5 Jun 2024 15:00:47 +1200 Subject: [PATCH] ENH Use class name instead of self --- src/UpdateChecker.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;