Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2149

Space-Formatting of == and === in PHP does not match "Binary Operators"

    XMLWordPrintableJSON

Details

    Description

      When formatting code the current release does not interpret == or === as a binary operator, but as an assignment Operator instead.

      Autoformatting the following code:

      $a=$b==$c;
      $a=$b===$c;

      With Spaces around "Binary Operators" only results in:

      $a=$b== $c;
      $a=$b=== $c;

      Expected behavior would be:

      $a=$b == $c;
      $a=$b === $c;

      Adding "Assignment Operators" results in:

      $a = $b == $c;
      $a = $b === $c;

       

      Attachments

        Issue Links

          Activity

            People

              junichi11 Junichi Yamamoto
              bohninger-m Manuel Bohninger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m