Do not type-hint these as a DB_Error is also possible and will cause a fatal error.
authorGunnar Wrobel <p@rdus.de>
Tue, 27 Apr 2010 07:00:08 +0000 (09:00 +0200)
committerGunnar Wrobel <p@rdus.de>
Tue, 27 Apr 2010 07:00:08 +0000 (09:00 +0200)
framework/History/lib/Horde/History/Sql.php

index e97cede..0ea12e8 100644 (file)
@@ -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;