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

Issue Type: Patch Created: 2011-07-27T13:38:50.000+0000 Last Updated: 2011-07-29T00:12:25.000+0000 Status: Resolved Fix version(s): - 1.11.10 (04/Aug/11)

Reporter: David Fuhr (davidfuhr) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Application_Resource

Related issues: Attachments:


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.

<pre class="literal">
### 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()


Posted by Adam Lundrigan (adamlundrigan) on 2011-07-29T00:12:25.000+0000

Fixed in trunk r24296 Merged to release-1.11 in r24297

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.