Skip to content

Commit

Permalink
update: Filename to use directory separator
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbruce committed Jan 20, 2024
1 parent be7c790 commit 418811e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FileSystem/Filename.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 418811e

Please sign in to comment.