Tomas Votruba 300503afe6 Updated Rector to commit f42b3f91e27354411269caf3ce2636d90a2ba3aa
8d64aee223 Fix memory leak b5dce9edd7 Further improvement f42b3f91e2 Merge pull request #1643 from ondrejmirtes/fix-memory-leak
2022-01-07 00:57:38 +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 RectorPrefix20220107\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)();
}
}