From: Gunnar Wrobel
Date: Tue, 27 Apr 2010 07:00:08 +0000 (+0200) Subject: Do not type-hint these as a DB_Error is also possible and will cause a fatal error. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7c05f0b2da7f43ed992e3a2fae89e7ad0a77b4ea;p=horde.git Do not type-hint these as a DB_Error is also possible and will cause a fatal error. --- diff --git a/framework/History/lib/Horde/History/Sql.php b/framework/History/lib/Horde/History/Sql.php index e97cedee6..0ea12e8c0 100644 --- a/framework/History/lib/Horde/History/Sql.php +++ b/framework/History/lib/Horde/History/Sql.php @@ -51,7 +51,7 @@ class Horde_History_Sql extends Horde_History * * @throws Horde_History_Exception */ - public function __construct(DB_common $db) + public function __construct($db) { $this->handleError($db); $this->_write_db = $db; @@ -66,7 +66,7 @@ class Horde_History_Sql extends Horde_History * * @throws Horde_History_Exception */ - public function setReadDb(DB_common $db) + public function setReadDb($db) { $this->handleError($db); $this->_db = $db;