Skip to content

Commit b44a626

Browse files
authored
Add type annotations to Finder::depth() in Filesystem
Follow-up to laravel#57573
1 parent d91db74 commit b44a626

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Illuminate/Filesystem/Filesystem.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ public function glob($pattern, $flags = 0)
580580
*
581581
* @param string $directory
582582
* @param bool $hidden
583+
* @param string|int|string[]|int[] $levels
583584
* @return \Symfony\Component\Finder\SplFileInfo[]
584585
*/
585586
public function files($directory, $hidden = false, array|string|int $depth = 0)
@@ -606,6 +607,7 @@ public function allFiles($directory, $hidden = false)
606607
* Get all of the directories within a given directory.
607608
*
608609
* @param string $directory
610+
* @param string|int|string[]|int[] $levels
609611
* @return array
610612
*/
611613
public function directories($directory, array|string|int $depth = 0)

0 commit comments

Comments
 (0)