Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8
    • Component/s: Parser
    • Labels:
      None

      Description

      <?php
      // Pre PHP 7 code
      use some\namespace\ClassA;
      use some\namespace\ClassB;
      use some\namespace\ClassC as C;
      
      use function some\namespace\fn_a;
      use function some\namespace\fn_b;
      use function some\namespace\fn_c;
      
      use const some\namespace\ConstA;
      use const some\namespace\ConstB;
      use const some\namespace\ConstC;
      
      // PHP 7+ code
      use some\namespace\{ClassA, ClassB, ClassC as C};
      use function some\namespace\{fn_a, fn_b, fn_c};
      use const some\namespace\{ConstA, ConstB, ConstC};
      ?>
      

      http://php.net/manual/en/migration70.new-features.php#migration70.new-features.group-use-declarations

        Attachments

          Activity

            People

            Assignee:
            elena.vilchik Elena Vilchik
            Reporter:
            elena.vilchik Elena Vilchik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: