ZF-11058: Documentation of return type "class instance"

Issue Type: Docs: Problem Created: 2011-02-09T04:50:27.000+0000 Last Updated: 2011-02-19T03:32:47.000+0000 Status: Resolved Fix version(s): - 1.11.4 (03/Mar/11)

Reporter: Martin Keckeis (thadafinser) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Http_UserAgent

Related issues: Attachments: - UserAgent.php.patch



that IDEs like Zend Studio can support the suggestion, the return value has to be declared, from which class the instance is returned.

Example Zend_Http_UserAgent:

<pre class="highlight">
 * @return Zend_Http_UserAgent_Device $device
public function getDevice()

Now the IDE can support the suggestion of methods from this class instance.


Posted by Kai Uwe (kaiuwe) on 2011-02-09T05:34:35.000+0000

This is just an oversight. All other methods are properly documented.

Posted by Kai Uwe (kaiuwe) on 2011-02-09T05:48:25.000+0000

Patch added.

Posted by Satoru Yoshida (satoruyoshida) on 2011-02-19T03:32:42.000+0000

Thank You for reporting. Solved at SVN r23728, 23729 with setServer($server).

Because setServer was explained as: Retrieve the "$_SERVER" array .

Have you found an issue?

See the Overview section for more details.


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

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