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 182383

Summary: [PHPDoc] automatic recognition of variable type when it's array
Product: php Reporter: Filip Zamboj <fzamboj>
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal CC: amobilia
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Filip Zamboj 2010-03-19 15:08:39 UTC
if variable is array, e.g.: 

var $secondvar =
       array(
           'stuff' =>
               array(
                   6,
                   17,
                   'armadillo'
               ),
           testing => anotherconstant
        );

then auto-generated phpdoc tag could be array because we can say it's array in contrary of other variables where you can't always say what's the type.

 /**
  * @var array 
  */

it's <type> at the moment
 /**
  * @var <type> 
  */
Comment 1 Filip Zamboj 2010-09-15 12:31:01 UTC
batch reassigning
Comment 2 amobilia 2016-09-22 03:42:14 UTC
Reproductible in 8.2rc / Dev 201609210002