Skip to content

Commit

Permalink
Update src/FileSystem/FilePathHelper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik authored Sep 8, 2024
1 parent 33e9d2b commit 3deef97
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/FileSystem/FilePathHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ public function relativePath(string $fileRealPath): string
return $this->relativeFilePathFromDirectory($fileRealPath, getcwd());
}

public function absolutePath(string $fileRealPath): string
{
if ($this->filesystem->isAbsolutePath($fileRealPath)) {
return $fileRealPath;
}

return realpath($fileRealPath);
}

/**
* Used from
* https://github.com/phpstan/phpstan-src/blob/02425e61aa48f0668b4efb3e73d52ad544048f65/src/File/FileHelper.php#L40, with custom modifications
Expand Down

0 comments on commit 3deef97

Please sign in to comment.