1
0
Fork 0
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:
Jordi Boggiano 2013-04-07 11:34:58 +02:00
parent ef65b63288
commit 3ce71466f1
2 changed files with 61 additions and 6 deletions

View file

@ -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;
}
}
}
}