Issues

ZF-11616: Zend_Application_Resource_Db::getDbAdapter() has wrong return type documented

Description

The phpdoc comments state that getDbAdapter() returns Zend_Db_Adapter_Interface. However, there is no such interface. Instead it retuns Zend_Db_Adapter_Abstract.

This is a bit annoying as it breaks autocompletion in any IDE.

### Eclipse Workspace Patch 1.0
#P ZendFramework-trunk
Index: library/Zend/Application/Resource/Db.php
===================================================================
--- library/Zend/Application/Resource/Db.php    (Revision 24270)
+++ library/Zend/Application/Resource/Db.php    (Arbeitskopie)
@@ -132,7 +132,7 @@
     /**
      * Retrieve initialized DB connection
      *
-     * @return null|Zend_Db_Adapter_Interface
+     * @return null|Zend_Db_Adapter_Abstract
      */
     public function getDbAdapter()
     {

Comments

Fixed in trunk r24296 Merged to release-1.11 in r24297