Address PHPStan warnings in 'classes/db.php'.

------ --------------------------------------------------
Line   classes/db.php
------ --------------------------------------------------
7      Property Db::$link is unused.
86     Property Db::pdo (PDO) in empty() is not falsy.
------ --------------------------------------------------
This commit is contained in:
wn_ 2021-11-01 20:28:00 +00:00
parent 77a98134b8
commit 7d8837ca17
1 changed files with 1 additions and 3 deletions

View File

@ -4,9 +4,7 @@ class Db
/** @var Db $instance */ /** @var Db $instance */
private static $instance; private static $instance;
private $link; /** @var PDO|null $pdo */
/** @var PDO $pdo */
private $pdo; private $pdo;
function __construct() { function __construct() {