mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +00:00
Treat empty paths in autoloader as ".", fixes #1727
This commit is contained in:
parent
ef65b63288
commit
3ce71466f1
2 changed files with 61 additions and 6 deletions
|
@ -483,7 +483,11 @@ FOOTER;
|
|||
$path = $package->getTargetDir() . '/' . $path;
|
||||
}
|
||||
|
||||
$autoloads[$namespace][] = empty($installPath) ? $path : $installPath.'/'.$path;
|
||||
if (empty($installPath)) {
|
||||
$autoloads[$namespace][] = empty($path) ? '.' : $path;
|
||||
} else {
|
||||
$autoloads[$namespace][] = $installPath.'/'.$path;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue