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 269518 - == and === count as Assignment Operators rather than Binary Operators
Summary: == and === count as Assignment Operators rather than Binary Operators
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.2
Hardware: PC Windows 8.1 x64
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-10 06:27 UTC by SimpleCop
Modified: 2017-01-10 06:27 UTC (History)
0 users

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 SimpleCop 2017-01-10 06:27:53 UTC
When switching from 8.1 to 8.2 I noticed that the formatting changed.

In 8.1 with having only binary and ternary operators checked at the formatting options for PHP - Spaces - Around Operators the code looked like:

if($a == 1)

With 8.2 and the same options checked it lookes like:

if($a== 1)

If I also check Assignemnt Operators the formatting lookes like expected, but all assignments are also changed. My guess is, that == and === count as assignment operators rather than binary operators. Other binary operators work like expected.