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 - Editor should flag a syntax error if $ is missing from a variable (and it cannot be a constant)
Summary: Editor should flag a syntax error if $ is missing from a variable (and it can...
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-09 09:51 UTC by vmattila
Modified: 2014-11-09 09:51 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 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.