Skip to content

Commit

Permalink
Flip union types to normalize code style
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 14, 2022
1 parent c215719 commit e1151c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function sitePath(string $path = ''): string
return $this->filesystem->sitePath($path);
}

public function pathToAbsolute(array|string $path): array|string
public function pathToAbsolute(string|array $path): string|array
{
return $this->filesystem->pathToAbsolute($path);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/framework/src/Foundation/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function path(string $path = ''): string
*
* Input types are matched, meaning that if the input is a string so will the output be.
*/
public function pathToAbsolute(array|string $path): array|string
public function pathToAbsolute(string|array $path): string|array
{
if (is_array($path)) {
return array_map(fn (string $path): string => $this->pathToAbsolute($path), $path);
Expand Down

0 comments on commit e1151c3

Please sign in to comment.