From 5ab496b8336b2f048df26624a956995ab4f0e582 Mon Sep 17 00:00:00 2001 From: flashwave Date: Tue, 12 May 2020 18:33:53 +0000 Subject: [PATCH] Use self:: instead of static::. --- src/Auth/MisuzuAuth.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Auth/MisuzuAuth.php b/src/Auth/MisuzuAuth.php index d37d092..fdd5c0b 100644 --- a/src/Auth/MisuzuAuth.php +++ b/src/Auth/MisuzuAuth.php @@ -11,8 +11,8 @@ class MisuzuAuth implements AuthInterface { private static $database = null; public function getDatabase(): PDO { - if(static::$database !== null) - return static::$database; + if(self::$database !== null) + return self::$database; $configPath = Config::get('Misuzu', 'config', ''); @@ -32,12 +32,12 @@ class MisuzuAuth implements AuthInterface { } try { - static::$database = new PDO($dsn, $config['username'], $config['password'], DB::FLAGS); + self::$database = new PDO($dsn, $config['username'], $config['password'], DB::FLAGS); } catch(PDOException $ex) { throw new \Exception('Unable to connect to Misuzu database.'); } - return static::$database; + return self::$database; } public function getName(): string { return 'Misuzu'; }