Skip to content

Commit 69700ea

Browse files
authored
Improve phpdoc in FileHelper::findFiles() + minor improvements (#50)
1 parent 495b4cd commit 69700ea

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/FileHelper.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
use RecursiveIteratorIterator;
1212
use RuntimeException;
1313
use Yiisoft\Files\PathMatcher\PathMatcherInterface;
14+
1415
use function array_key_exists;
1516
use function get_class;
17+
use function gettype;
1618
use function is_object;
1719

1820
/**
@@ -451,7 +453,7 @@ public static function lastModifiedTime(string ...$paths): int
451453
RecursiveIteratorIterator::SELF_FIRST
452454
);
453455

454-
foreach ($iterator as $p => $info) {
456+
foreach ($iterator as $p => $_info) {
455457
$times[] = self::modifiedTime($p);
456458
}
457459
}
@@ -532,7 +534,7 @@ public static function findDirectories(string $directory, array $options = []):
532534
*
533535
* @throws InvalidArgumentException If the directory is invalid.
534536
*
535-
* @return array Files found under the directory specified, in no particular order.
537+
* @return string[] Files found under the directory specified, in no particular order.
536538
* Ordering depends on the files system used.
537539
*/
538540
public static function findFiles(string $directory, array $options = []): array

0 commit comments

Comments
 (0)