Skip to content

Commit 1af376a

Browse files
fix(support): prevent Path\normalize from removing 0 from paths (#1817)
1 parent fefc36c commit 1af376a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/support/src/Path/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function normalize(null|Stringable|string ...$paths): string
127127

128128
// Trim forward and backward slashes
129129
$parts = array_map(fn (string $part) => trim($part, '/\\'), $parts);
130-
$parts = array_filter($parts);
130+
$parts = array_filter($parts, fn (string $part) => $part !== '');
131131

132132
// Glue parts together
133133
$path = implode('/', $parts);

0 commit comments

Comments
 (0)