From 418811e94f040f696a34284c0d6d11d27f893de5 Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Sat, 20 Jan 2024 16:14:29 -0500 Subject: [PATCH] update: Filename to use directory separator --- src/FileSystem/Filename.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FileSystem/Filename.php b/src/FileSystem/Filename.php index d2d7002..b1cd808 100644 --- a/src/FileSystem/Filename.php +++ b/src/FileSystem/Filename.php @@ -17,7 +17,7 @@ static public function fromString(string $filename = ''): self return new self(''); } - if (str_starts_with($filename, '/') === false) { + if (str_starts_with($filename, DIRECTORY_SEPARATOR) === false) { $filename = DIRECTORY_SEPARATOR . $filename; }