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

Autocomplete for PHP use stops working right after line with "use" which use grouping

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 12.4
    • 12.6
    • php - Editor
    • Windows 10 64-bit
      NetBeans 12.4 binaries
      PHP 7.4.21

    Description

      Test project structure:

      NS1\First.php
      NS1\Second.php
      NS2\Third.php
      test.php

      Trying to autocomplete class name NS2\Third in test.php fails:
       

      <?php // test.php
      
      use NS1\{
          First,
          Second
      };
      use third<<<
      

      But it works well if used before "use" with grouping:

      <?php // test.php
      
      use NS2\Third;
      use NS1\{
          First,
          Second
      };
      

      Also, autocompletion for class names works fine inside class body which has grouping in use block.

      Attachments

        Issue Links

          Activity

            People

              junichi11 Junichi Yamamoto
              olexpo Olexandr Ponomarenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 40m
                  40m