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

Summary: == and === count as Assignment Operators rather than Binary Operators
Product: php Reporter: SimpleCop
Component: Formatting & IndentationAssignee: Tomas Mysik <tmysik>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 8.1 x64   
Issue Type: DEFECT Exception Reporter:

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.