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 269104 - callable not recognized as built in type
Summary: callable not recognized as built in type
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: junichi11
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-24 14:19 UTC by twifty
Modified: 2017-04-01 03:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description twifty 2016-11-24 14:19:54 UTC
Steps to reproduce, create a file with a namespace, class and method:

namespace Foo;

class Bar
{
    function biteMe(callable $where)
    {
       //...
    }
}

Now begin adding a DocBlock comment to the method. After the usual "/**" <ENTER> shortcut, the auto generated @param/@return will prefix the 'callable' type with the current namespace:

/**
 *
 * @param Foo\callable $where
 */
function biteMe(callable $where)


As an aside, I find this strange since 'bool', 'int', 'float' and 'string'; introduced with PHP 7, work, but 'callable' introduced with PHP 5.4, doesn't.
Comment 1 junichi11 2017-03-31 01:04:06 UTC
Fixed.

http://hg.netbeans.org/web-main/rev/e1928acaaad9

Thanks.
Comment 2 Quality Engineering 2017-04-01 03:14:05 UTC
Integrated into 'main-silver', will be available in build *201704010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e1928acaaad9
User: Junichi Yamamoto <junichi11@netbeans.org>
Log: #269104 - callable not recognized as built in type