Skip to content

Commit

Permalink
Annotate the parameter type
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 15, 2024
1 parent e8e87f3 commit 7f99a23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/framework/src/Foundation/Kernel/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ public function smartGlob(string $pattern, int $flags = 0): Collection
return $files->map(fn (string $path): string => $this->pathToRelative($path));
}

/** @return \Illuminate\Support\Collection<int, string> */
/**
* @param string|array<string>|false $matchExtensions
* @return \Illuminate\Support\Collection<int, string>
*/
public function findFiles(string $directory, string|array|false $matchExtensions = false, bool $recursive = false): Collection
{
return app(FileFinder::class)->handle($directory, $matchExtensions, $recursive);
Expand Down

0 comments on commit 7f99a23

Please sign in to comment.