mirror of
https://github.com/nullthoughts/laravel-data-sync.git
synced 2026-03-17 17:05:38 +00:00
22 lines
270 B
PHP
22 lines
270 B
PHP
<?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();
|
|
}
|