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 239466 - Uninitialized variable hint on global (outer scope) code
Summary: Uninitialized variable hint on global (outer scope) code
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-13 13:03 UTC by clan82
Modified: 2013-12-13 13:05 UTC (History)
0 users

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 clan82 2013-12-13 13:03:40 UTC
Hello

I think it was a bad choice to completely remove the uninitialized variable check from code in the PHP outer/global scope. In many cases I am looking at a "main" PHP file, in which the hint is totally valid. In other cases it is an included file, for where it can or cannot be valid. In both cases you get a hint about something _may_ be wrong, and you can react on it, possibly write a comment.

Therefore I would like, as a minimum, a checkbox in the hint settings, to enable/disable the check on outer/global code.

A more ambitious way would be a way to annotate each file.

Regards, Claus