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 - [PHPDoc] automatic recognition of variable type when it's array
Summary: [PHPDoc] automatic recognition of variable type when it's array
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 2 votes (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-19 15:08 UTC by Filip Zamboj
Modified: 2016-09-22 03:42 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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