From 11bd5c7fe8f653154c5ef998624d05b77efc080a Mon Sep 17 00:00:00 2001 From: Alessandro Chitolina Date: Thu, 13 Jun 2024 10:56:42 +0200 Subject: [PATCH] minor: specify key type in iterator phpdocs --- lib/Finder/ComposerFinder.php | 2 +- lib/Finder/PhpDocumentorFinder.php | 2 +- lib/Finder/Psr0Finder.php | 2 +- lib/Finder/Psr4Finder.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Finder/ComposerFinder.php b/lib/Finder/ComposerFinder.php index 2b852b5..417ce80 100644 --- a/lib/Finder/ComposerFinder.php +++ b/lib/Finder/ComposerFinder.php @@ -73,7 +73,7 @@ public function useAutoloading(bool $use = true): self return $this; } - /** @return Iterator */ + /** @return Iterator */ public function getIterator(): Iterator { $flags = 0; diff --git a/lib/Finder/PhpDocumentorFinder.php b/lib/Finder/PhpDocumentorFinder.php index 175524a..523b3c1 100644 --- a/lib/Finder/PhpDocumentorFinder.php +++ b/lib/Finder/PhpDocumentorFinder.php @@ -27,7 +27,7 @@ public function __construct(private string $dir) } } - /** @return Iterator */ + /** @return Iterator */ public function getIterator(): Iterator { $pathCallback = $this->pathFilterCallback !== null ? ($this->pathFilterCallback)(...) : null; diff --git a/lib/Finder/Psr0Finder.php b/lib/Finder/Psr0Finder.php index 89d2b98..7afd86b 100644 --- a/lib/Finder/Psr0Finder.php +++ b/lib/Finder/Psr0Finder.php @@ -49,7 +49,7 @@ public function setReflectorFactory(ReflectorFactoryInterface|null $reflectorFac return $this; } - /** @return Iterator */ + /** @return Iterator */ public function getIterator(): Iterator { $pathFilterCallback = $this->pathFilterCallback !== null ? ($this->pathFilterCallback)(...) : null; diff --git a/lib/Finder/Psr4Finder.php b/lib/Finder/Psr4Finder.php index c4d1730..10f2e90 100644 --- a/lib/Finder/Psr4Finder.php +++ b/lib/Finder/Psr4Finder.php @@ -49,7 +49,7 @@ public function setReflectorFactory(ReflectorFactoryInterface|null $reflectorFac return $this; } - /** @return Iterator */ + /** @return Iterator */ public function getIterator(): Iterator { $pathFilterCallback = $this->pathFilterCallback !== null ? ($this->pathFilterCallback)(...) : null;