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 248518

Summary: Editor should flag a syntax error if $ is missing from a variable (and it cannot be a constant)
Product: php Reporter: vmattila
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description vmattila 2014-11-09 09:51:21 UTC
Consider following lines:

$value = array['something'];
$value = object->something();

As constants can be only scalars or null values, the above lines should be marked as syntax errors. Most likely the developer has forgotten $ before array and object.