Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Apr 1, 2023
1 parent b3beae2 commit 1294d3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BustCache/FileSystem/Path.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ public static function of(string $path): static
return new static($path);
}

public static function join(Path|string ...$parts): static
public static function join(self|string ...$parts): static
{
$stringParts = array_map(
fn (Path|string $part): string => $part instanceof Path ? $part->toString() : $part,
fn (self|string $part): string => $part instanceof self ? $part->toString() : $part,
$parts,
);
$result = array_shift($stringParts) ?? '';
Expand Down

0 comments on commit 1294d3d

Please sign in to comment.