Skip to content

Commit

Permalink
minor: specify key type in iterator phpdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
alekitto committed Jun 13, 2024
1 parent f4b03bc commit 11bd5c7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Finder/ComposerFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function useAutoloading(bool $use = true): self
return $this;
}

/** @return Iterator<Reflector> */
/** @return Iterator<class-string, Reflector> */
public function getIterator(): Iterator
{
$flags = 0;
Expand Down
2 changes: 1 addition & 1 deletion lib/Finder/PhpDocumentorFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(private string $dir)
}
}

/** @return Iterator<Element> */
/** @return Iterator<class-string, Element> */
public function getIterator(): Iterator
{
$pathCallback = $this->pathFilterCallback !== null ? ($this->pathFilterCallback)(...) : null;
Expand Down
2 changes: 1 addition & 1 deletion lib/Finder/Psr0Finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function setReflectorFactory(ReflectorFactoryInterface|null $reflectorFac
return $this;
}

/** @return Iterator<Reflector> */
/** @return Iterator<class-string, Reflector> */
public function getIterator(): Iterator
{
$pathFilterCallback = $this->pathFilterCallback !== null ? ($this->pathFilterCallback)(...) : null;
Expand Down
2 changes: 1 addition & 1 deletion lib/Finder/Psr4Finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function setReflectorFactory(ReflectorFactoryInterface|null $reflectorFac
return $this;
}

/** @return Iterator<Reflector> */
/** @return Iterator<class-string, Reflector> */
public function getIterator(): Iterator
{
$pathFilterCallback = $this->pathFilterCallback !== null ? ($this->pathFilterCallback)(...) : null;
Expand Down

0 comments on commit 11bd5c7

Please sign in to comment.