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

Summary: Uninitialized variable hint on global (outer scope) code
Product: php Reporter: clan82
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

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