diff --git a/classes/db.php b/classes/db.php index 70b97d0ee99932649a97eaa207f43b1a1ba06ad6..6199c82bbb941cd10c344128fc5c574b9f71a36e 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(); diff --git a/classes/pluginhost.php b/classes/pluginhost.php index d94279706071a14016ea99205a14f85a49948f3b..8c5e31ad336c0cde09b4171862dd551849eb1291 100755 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -111,7 +111,7 @@ class PluginHost { return Db::get(); } - function get_pdo() { + function get_pdo(): PDO { return $this->pdo; }