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 267688

Summary: Incorrect and misleading hint of PHP coding error in editor
Product: ide Reporter: jimbrooking
Component: CodeAssignee: issues@ide <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description jimbrooking 2016-08-23 20:02:10 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_60
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.60-b23

Reproducibility: Happens every time

STEPS:
  * Open any PHP program

ACTUAL:
  * Scroll to simple assignment statement, e.g., $txt = str_replace( '%1', $ackPage, $txt);
  * Observe warning yellow triangle in line number column
  * Hover over triangle
  * See warning message :You should use only" (1 assignment(s) (2 used) to a variable $txt
EXPECTED:
  * No warning triangle, no erroneous hint

Unfortunately no apparent capability to include a screen shot
Comment 1 jimbrooking 2016-08-23 20:02:15 UTC
Created attachment 161755 [details]
IDE log