1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 05:15:55 +00:00

db: add type hints

This commit is contained in:
Andrew Dolgov
2021-02-08 21:11:56 +03:00
parent a14873d5b4
commit 6e57fd77af
2 changed files with 3 additions and 3 deletions

View File

@@ -92,7 +92,7 @@ class Db
return self::$instance; return self::$instance;
} }
public static function get() { public static function get() : Db {
if (self::$instance == null) if (self::$instance == null)
self::$instance = new self(); self::$instance = new self();
@@ -103,7 +103,7 @@ class Db
return self::$instance->adapter; return self::$instance->adapter;
} }
public static function pdo() { public static function pdo() : PDO {
if (self::$instance == null) if (self::$instance == null)
self::$instance = new self(); self::$instance = new self();

View File

@@ -111,7 +111,7 @@ class PluginHost {
return Db::get(); return Db::get();
} }
function get_pdo() { function get_pdo(): PDO {
return $this->pdo; return $this->pdo;
} }