Tomas Votruba fc910d5859 Updated Rector to commit b708e071f3b349f7a1bae5ff1c259bd661e6e690
b708e071f3 [Php74] Skip variable FuncCall () on ReservedFnFunctionRector (#1815)
2022-02-15 12:37:44 +00:00

31 lines
637 B
PHP

<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RectorPrefix20220215\Symfony\Component\Console\Helper;
/**
* @internal
*/
class TableRows implements \IteratorAggregate
{
/**
* @var \Closure
*/
private $generator;
public function __construct(\Closure $generator)
{
$this->generator = $generator;
}
public function getIterator() : \Traversable
{
return ($this->generator)();
}
}