mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-21 12:10:34 +09:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user