comparison vendor/symfony/var-dumper/Tests/Fixtures/GeneratorDemo.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace Symfony\Component\VarDumper\Tests\Fixtures;
4
5 class GeneratorDemo
6 {
7 public static function foo()
8 {
9 yield 1;
10 }
11
12 public function baz()
13 {
14 yield from bar();
15 }
16 }
17
18 function bar()
19 {
20 yield from GeneratorDemo::foo();
21 }