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.
This commit is contained in:
Shift
2024-02-16 21:12:53 +00:00
parent 095aff86c2
commit 3188a8f311

View File

@@ -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);