Skip to content

Commit

Permalink
Use isAbsolute
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Aug 6, 2024
1 parent 54a3313 commit 8b2569b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ComposerJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private function extractAutoloadPaths(string $basePath, array $autoload, bool $i
}

foreach ($paths as $path) {
if (strpos($path, '/') === 0) {
if (Path::isAbsolute($path)) {
$absolutePath = $path;
} else {
$absolutePath = $basePath . '/' . $path;
Expand Down

0 comments on commit 8b2569b

Please sign in to comment.