We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Path\normalize
0
1 parent fefc36c commit 1af376aCopy full SHA for 1af376a
packages/support/src/Path/functions.php
@@ -127,7 +127,7 @@ function normalize(null|Stringable|string ...$paths): string
127
128
// Trim forward and backward slashes
129
$parts = array_map(fn (string $part) => trim($part, '/\\'), $parts);
130
- $parts = array_filter($parts);
+ $parts = array_filter($parts, fn (string $part) => $part !== '');
131
132
// Glue parts together
133
$path = implode('/', $parts);
0 commit comments