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

Bug 322879

Summary: [PHP 5.3] Content assist does not suggest the class container in class variable comment block
Product: z_Archived Reporter: Kalin <kalin.a>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: ganoro, silviya
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kalin CLA 2010-08-17 04:29:20 EDT
Build Identifier: 2.2.0.v20100621

Have the following code in php file under PHP 5.3 project:

<?php
namespace ns;
class CCC{
	/*@var $rt \ns\| */   //invoke Content Assist at cursor position |
var $rt = 435;
}

Expected:
The class container CCC should be suggested.

Actual:
No completion available.


Reproducible: Always
Comment 1 xu jiaxi CLA 2010-10-11 03:03:24 EDT
In my opinion, you should use the comment below for class member

<?php
namespace ns;

class CCC{

	/**
	 * @var |\ns\CCC   //CA will be suggested at curesor position when you press ctrl+space
	 */
	var $rt = 435;
}
Comment 2 Zhongwei Zhao CLA 2011-08-17 02:10:03 EDT
fixed in head
Comment 3 Sylvia Tancheva CLA 2011-09-08 06:53:44 EDT
Verified.
Ilina Stefanova