From 39af2b6ca12cf9ddb36088917e0e3fb3f73a4474 Mon Sep 17 00:00:00 2001 From: PedroTroller Date: Mon, 26 Feb 2024 10:47:01 +0100 Subject: [PATCH] refactor: fix php-cs-fixer error --- src/Gaufrette/Util/Path.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Gaufrette/Util/Path.php b/src/Gaufrette/Util/Path.php index c2d8d2af..54e788d7 100644 --- a/src/Gaufrette/Util/Path.php +++ b/src/Gaufrette/Util/Path.php @@ -17,7 +17,12 @@ public static function normalize(string $path): string $path = str_replace('\\', '/', $path); $prefix = static::getAbsolutePrefix($path); $path = substr($path, strlen($prefix)); - $parts = array_filter(explode('/', $path), 'strlen'); + $parts = array_filter( + explode('/', $path), + function (string $part): bool { + return '' === $part; + }, + ); $tokens = []; foreach ($parts as $part) {