Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362284 - PHP Doc does not suggest return type from another php doc
Summary: PHP Doc does not suggest return type from another php doc
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-28 05:04 EDT by sparrow Mising name CLA
Modified: 2020-05-14 11:07 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sparrow Mising name CLA 2011-10-28 05:04:51 EDT
In the example below the second PHP Doc could generate the "@return Zend_Db_Table_Rowset" if it looked into the PHP Doc from previous method

	/**
	 * Fetch entries by category
	 *
	 * @param integer $categoryId
	 * @return Zend_Db_Table_Rowset
	 */
	public function findByCategory($categoryId)
	{
		return $this->fetchAll($this->select()
			->where('category_id = ?', $categoryId)
			->order(array('name', 'id'))
		);
	}

	/**
	 *
	 * Enter description here ...
	 */
	public function findSubjectTypes()
	{
		return $this->findByCategory(ClassBook_Model_Dictionary::CATEGORY_SUBJECT_TYPE);
	}
Comment 1 Zhongwei Zhao CLA 2012-05-17 01:06:10 EDT
Could not reproduce this bug.
Comment 2 Kalin CLA 2012-07-05 07:50:58 EDT
No longer reproduced.
I got a proper result.
Closing...

Kalin Yanev
kalin.a@zend.com