Skip to content

Commit

Permalink
Explicitly annotate type as Psalm is not reading stub well
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 15, 2024
1 parent baa6a61 commit e8b9cd0
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 @@ -191,6 +191,9 @@ public function smartGlob(string $pattern, int $flags = 0): Collection
*/
public function findFiles(string $directory, string|array|false $matchExtensions = false, bool $recursive = false): Collection
{
return app(FileFinder::class)->handle($directory, $matchExtensions, $recursive);
/** @var \Hyde\Framework\Actions\Internal\FileFinder $finder */
$finder = app(FileFinder::class);

return $finder->handle($directory, $matchExtensions, $recursive);
}
}

0 comments on commit e8b9cd0

Please sign in to comment.