From 3188a8f3116d73c67ed6b335267bf29ae8f39d9b Mon Sep 17 00:00:00 2001 From: Shift Date: Fri, 16 Feb 2024 21:12:53 +0000 Subject: [PATCH] Convert string references to `::class` PHP 5.5.9 adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP. --- app/SupportedApps.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/SupportedApps.php b/app/SupportedApps.php index c2798230..9ef56421 100644 --- a/app/SupportedApps.php +++ b/app/SupportedApps.php @@ -134,7 +134,7 @@ abstract class SupportedApps */ public function getLiveStats($status, $data) { - $className = get_class($this); + $className = $this::class; $explode = explode('\\', $className); $name = end($explode);