diff --git a/packages/framework/src/Foundation/Kernel/Filesystem.php b/packages/framework/src/Foundation/Kernel/Filesystem.php index a37546dbe15..06703eb43db 100644 --- a/packages/framework/src/Foundation/Kernel/Filesystem.php +++ b/packages/framework/src/Foundation/Kernel/Filesystem.php @@ -189,6 +189,8 @@ public function smartGlob(string $pattern, int $flags = 0): Collection /** @return \Illuminate\Support\Collection */ public function findFiles(string $directory, string|array|false $matchExtensions = false, bool $recursive = false): Collection { + // TODO: Extract to internal class + if (! \Hyde\Facades\Filesystem::isDirectory($directory)) { return collect(); }