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 271124 - Invalid "syntax error" hint when -> ("dereference operator") used after a closing parenthesis
Summary: Invalid "syntax error" hint when -> ("dereference operator") used after a clo...
Status: RESOLVED DUPLICATE of bug 262141
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: issues@php
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-19 11:26 UTC by sviatopolk
Modified: 2017-07-20 22:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sviatopolk 2017-07-19 11:26:34 UTC
Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Linux version 4.9.02viktor-20161027 running on amd64
Java; VM; Vendor = 1.8.0_131
Runtime = OpenJDK 64-Bit Server VM 25.131-b11

Reproducibility: Happens every time

STEPS:
  Create a PHP file
  Insert the following:

($whatever->getBaz())
->setFree();

ACTUAL:
  An error hint with text "
Syntax Error
Unexpected '->'
after )
" shows up

EXPECTED:
  Perfectly nothing
Comment 1 kAlvaro 2017-07-20 15:17:37 UTC
This seems already fixed in current development snapshots.
Comment 2 sviatopolk 2017-07-20 15:42:24 UTC
Thanks for letting me know.

I will try that on the weekend.
Comment 3 junichi11 2017-07-20 22:40:23 UTC
Yes, this was already fixed.

Thanks.

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