Skip to content

Commit 1b4652c

Browse files
committed
FileList: improve doc specificity
Make the iterator list type specifications more specific to comply with expectations in PHPStan 2.0. Note: in reality the type should be `\RegexIterator<int, string, \Traversable<int, string>>`, but would yield yet another PHPStan error, so let's just leave it like this for now.
1 parent 987ce02 commit 1b4652c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Scripts/FileList.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class FileList
4747
/**
4848
* Regex iterator.
4949
*
50-
* @var \RegexIterator
50+
* @var \RegexIterator<mixed, mixed, \Traversable<mixed, mixed>>
5151
*/
5252
protected $fileIterator;
5353

@@ -85,7 +85,7 @@ public function __construct($directory, $rootPath = '', $filter = '')
8585
/**
8686
* Retrieve the filtered file list iterator.
8787
*
88-
* @return \RegexIterator
88+
* @return \RegexIterator<mixed, mixed, \Traversable<mixed, mixed>>
8989
*/
9090
public function getIterator()
9191
{

0 commit comments

Comments
 (0)