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 200622 - PHP Hints bug
Summary: PHP Hints bug
Status: RESOLVED DUPLICATE of bug 170541
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0.1
Hardware: PC Linux
: P4 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-03 09:10 UTC by petrr
Modified: 2011-09-13 08:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (32.50 KB, image/png)
2011-08-03 09:10 UTC, petrr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description petrr 2011-08-03 09:10:57 UTC
Created attachment 109763 [details]
screenshot

Hi,

in this code 

$foo = NULL;
if ($foo) {
    $new = $foo;
} else {
    $new = NULL;
}
echo $new;

the variable $new will always initialized.
Comment 1 petrr 2011-08-11 12:18:30 UTC
similar problem with:

- in list params: 
list($new) = explode(',', 'foo,boo');

- in closure params: 
$a = function($new){echo $new};
Comment 2 Petr Pisl 2011-08-15 13:50:21 UTC
I think you have switch on the experimental hints. These have to be rewritted.
Comment 3 Ondrej Brejla 2011-09-13 08:01:47 UTC

*** This bug has been marked as a duplicate of bug 170541 ***