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 230601 - Enable code completion based on @param docblock
Summary: Enable code completion based on @param docblock
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Brejla
Depends on:
Reported: 2013-06-01 08:22 UTC by vmattila
Modified: 2013-06-01 08:22 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description vmattila 2013-06-01 08:22:43 UTC
One of frustrating features of PHP 5 type hinting is handling of null in type hinted functions. In strict mode, this will raise a notice, so we can use type hinting only if the function accepts no mixed arguments.

In this case, we do usually write a docblock @param to declare the supported parameters:

 * @param $arg \DateTime|null
function acceptsDateTimeOrNull($arg) {


It would be useful if NetBeans would enable code completion based on the @param docblock, at least when there is only one class and |null.