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
      function gen()
      {
          yield 1;
          yield 2;
          yield from gen2();
      }
      
      function gen2()
      {
          yield 3;
          yield 4;
      }
      
      foreach (gen() as $val)
      {
          echo $val, PHP_EOL;
      }
      

      http://php.net/manual/en/migration70.new-features.php#migration70.new-features.generator-delegation

        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: