Skip to content

Commit 3bd7e59

Browse files
authored
ComposerJson: minor realpath cleanup (#101)
1 parent ddf83da commit 3bd7e59

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/ComposerJson.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,27 +112,19 @@ private function extractAutoloadPaths(string $basePath, array $autoload, bool $i
112112
}
113113

114114
foreach ($globPaths as $globPath) {
115-
$result[$this->realpath($globPath)] = $isDev;
115+
$result[Path::realpath($globPath)] = $isDev;
116116
}
117117

118118
continue;
119119
}
120120

121-
$result[$this->realpath($absolutePath)] = $isDev;
121+
$result[Path::realpath($absolutePath)] = $isDev;
122122
}
123123
}
124124

125125
return $result;
126126
}
127127

128-
/**
129-
* @throws InvalidPathException
130-
*/
131-
private function realpath(string $path): string
132-
{
133-
return Path::realpath($path);
134-
}
135-
136128
/**
137129
* @return array{
138130
* require?: array<string, string>,

0 commit comments

Comments
 (0)