diff --git a/packages/framework/src/Foundation/Kernel/Filesystem.php b/packages/framework/src/Foundation/Kernel/Filesystem.php index 724ac387d3a..dcc8f79ed73 100644 --- a/packages/framework/src/Foundation/Kernel/Filesystem.php +++ b/packages/framework/src/Foundation/Kernel/Filesystem.php @@ -195,6 +195,7 @@ public function unlinkIfExists(string $path): bool public function smartGlob(string $pattern, int $flags = 0): Collection { return collect(\Hyde\Facades\Filesystem::glob($pattern, $flags)) - ->map(fn (string $path): string => $this->pathToRelative($path)); + ->map(fn (string $path): string => $this->pathToRelative($path)) + ->values(); } }