Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362284

Summary: PHP Doc does not suggest return type from another php doc
Product: z_Archived Reporter: sparrow Mising name <wrobel>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P2 CC: kalin.a, zhaozhongwei
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

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