From cfce9cbd59cbdde48da901cc362be0c1517eacd1 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 12 Feb 2021 11:28:09 +0100 Subject: [PATCH] add missing return type declaration --- src/Symfony/Component/Finder/Iterator/LazyIterator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Finder/Iterator/LazyIterator.php b/src/Symfony/Component/Finder/Iterator/LazyIterator.php index 4388f4f3fd..9028facf7f 100644 --- a/src/Symfony/Component/Finder/Iterator/LazyIterator.php +++ b/src/Symfony/Component/Finder/Iterator/LazyIterator.php @@ -23,7 +23,7 @@ class LazyIterator implements \IteratorAggregate $this->iteratorFactory = $iteratorFactory; } - public function getIterator() + public function getIterator(): \Traversable { yield from ($this->iteratorFactory)(); }