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

PHP Menu Source->Fix uses break code

    XMLWordPrintableJSON

Details

    Description

      Using "Fix Uses" (Source menu) break code by moving "use \Package\To\Use;" before "declare(strict_types=1);"

      It does not happen if a use line is already present in the source code (at the correct position).

      declare(strict_types=1); must always be the first line.

      Attachments

        1. 01BeforeFixUses.png
          82 kB
          Jayce
        2. 02AfterFixUses.png
          53 kB
          Jayce
        3. BugClass.php
          0.3 kB
          Jayce
        4. BugScreencast.mov
          869 kB
          Jayce

        Issue Links

          Activity

            People

              junichi11 Junichi Yamamoto
              FFT Jayce
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 1h 40m
                  1h 40m