This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 271448

Summary: Netbeans fails to see variable type
Product: php Reporter: antoniocs <antoniocs>
Component: CodeAssignee: issues@php <issues>
Status: NEW ---    
Severity: normal    
Priority: P1    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: var hint issue

Description antoniocs 2017-09-08 10:20:14 UTC
Created attachment 165106 [details]
var hint issue

I have the following code:


/* @var $studentClass StudentsClass  */            
$studentClass = $event->getData();


The StudentsClass is defined as:

use AppBundle\Entity\StudentsClass;


But there is never any auto completion on the variable.
I have attached a screenshot of this happening (yes the code is in a lambda, still think netbeans should pick up the class definition)
Comment 1 antoniocs 2017-09-08 10:22:12 UTC
To note that I just tried with the full path:

/* @var $studentClass AppBundle\Entity\StudentsClass*/            
$studentClass = $event->getData();

And

/* @var $studentClass \AppBundle\Entity\StudentsClass*/            
$studentClass = $event->getData();

Still nothing!
Comment 2 antoniocs 2017-09-08 10:23:37 UTC
On another note, if I ctrl+click on the StudentsClass netbeans opens the entity file.

So it seems netbeans can get to the file it just can't auto complete the methods...