Skip to content

Commit 4f362aa

Browse files
committed
Fix type hinting for Iterators that were arrays
1 parent 4db9c22 commit 4f362aa

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/DetectSitemapsURLs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class DetectSitemapsURLs {
1111
/**
1212
* Detect Authors URLs
1313
*
14-
* @return string[] list of URLs
14+
* @return \Iterator<array> list of URLs
1515
* @throws WP2StaticException
1616
*/
1717
public static function detect( string $wp_site_url, bool $log = false ) : \Iterator {

src/DetectVendorCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class DetectVendorCache {
1414
* So, we grab all the files from the its actual cache dir
1515
* then strip the site path and any subdir path (no extra logic needed?)
1616
*
17-
* @return string[] list of URLs
17+
* @return \Iterator<array> list of URLs
1818
*/
1919
public static function detect(
2020
FileFiltering $filtering,

src/DetectVendorFiles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class DetectVendorFiles {
1414
/**
1515
* Detect vendor URLs from filesystem
1616
*
17-
* @return string[] list of URLs
17+
* @return \Iterator<array> list of URLs
1818
*/
1919
public static function detect(
2020
FileFiltering $filtering,

0 commit comments

Comments
 (0)