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 213813 - "PHPDoc not found" in documentation window when non-optional function arguments is used in @method
Summary: "PHPDoc not found" in documentation window when non-optional function argumen...
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: PHPDoc (show other bugs)
Version: 7.2
Hardware: All All
: P4 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-08 10:48 UTC by fruit
Modified: 2016-09-22 16:56 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
PHPDoc not found, for non-optional method parameters (36.47 KB, image/png)
2012-06-08 10:48 UTC, fruit
Details
Another example showing the failure (49.75 KB, image/png)
2012-07-26 00:25 UTC, drazisil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fruit 2012-06-08 10:48:10 UTC
Created attachment 120554 [details]
PHPDoc not found, for non-optional method parameters

NetBeans IDE Dev (Build 201206040001), Java: 1.7.0_04; 64-Bit, Linux: 2.6.35.14-106.fc14.x86_64 running on amd64; UTF-8; en_US (nb)

Hello,

In case, when non-optional parameter is used, documentation window displays for such parameters "PHPDoc not found".
 

  /**
   * @method int do do(Closure $callback, $sleep = true) Do job and runs callback
   */
  class Foo
  {
    
  }

  $a = new A();
  $a->
Comment 1 fruit 2012-06-08 11:01:04 UTC
Ops, "class Foo {}" should be "class A {}"
Comment 2 fruit 2012-06-08 11:05:24 UTC
rather, it is not a bug - "= true" are also just a Comment
Comment 3 Ondrej Brejla 2012-06-08 11:07:09 UTC
It's reproducible...but just a cosmetic thing ;) That @method annotation parsing should be more complex. Thanks.

Product Version: NetBeans IDE Dev (Build 20120608-b24df83d0590)
Java: 1.6.0_31; Java HotSpot(TM) 64-Bit Server VM 20.6-b01-415
System: Mac OS X version 10.7.4 running on x86_64; UTF-8; cs_CZ (nb)
User directory: /Users/ondrej/netbeans-debug/userdir
Cache directory: /Users/ondrej/netbeans-debug/userdir/var/cache
Comment 4 drazisil 2012-07-26 00:25:16 UTC
Created attachment 122379 [details]
Another example showing the failure