From 6e57fd77afbf43cee5e030f64c7598be8a97916e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 8 Feb 2021 21:11:56 +0300 Subject: db: add type hints --- classes/db.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes/db.php') diff --git a/classes/db.php b/classes/db.php index 70b97d0ee..6199c82bb 100755 --- a/classes/db.php +++ b/classes/db.php @@ -92,7 +92,7 @@ class Db return self::$instance; } - public static function get() { + public static function get() : Db { if (self::$instance == null) self::$instance = new self(); @@ -103,7 +103,7 @@ class Db return self::$instance->adapter; } - public static function pdo() { + public static function pdo() : PDO { if (self::$instance == null) self::$instance = new self(); -- cgit v1.2.3-54-g00ecf