From 3deef97fd393b2de1c40f126aa78c1feb1841258 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sun, 8 Sep 2024 08:23:23 +0700 Subject: [PATCH] Update src/FileSystem/FilePathHelper.php --- src/FileSystem/FilePathHelper.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/FileSystem/FilePathHelper.php b/src/FileSystem/FilePathHelper.php index a90e6ab0f47..a2e9125254a 100644 --- a/src/FileSystem/FilePathHelper.php +++ b/src/FileSystem/FilePathHelper.php @@ -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