drupal-civicrm/vendor/symfony/var-dumper/Tests/Fixtures/GeneratorDemo.php

22 lines
270 B
PHP
Raw Normal View History

2018-01-14 15:10:16 +02:00
<?php
namespace Symfony\Component\VarDumper\Tests\Fixtures;
class GeneratorDemo
{
public static function foo()
{
yield 1;
}
public function baz()
{
yield from bar();
}
}
function bar()
{
yield from GeneratorDemo::foo();
}