package and depencies
This commit is contained in:
@@ -18,11 +18,11 @@ namespace Symfony\Component\Finder\Iterator;
|
||||
*/
|
||||
class LazyIterator implements \IteratorAggregate
|
||||
{
|
||||
private $iteratorFactory;
|
||||
private \Closure $iteratorFactory;
|
||||
|
||||
public function __construct(callable $iteratorFactory)
|
||||
{
|
||||
$this->iteratorFactory = $iteratorFactory;
|
||||
$this->iteratorFactory = $iteratorFactory(...);
|
||||
}
|
||||
|
||||
public function getIterator(): \Traversable
|
||||
|
Reference in New Issue
Block a user