1
0
Fork 0

Handle empty namespaces

pull/1000/merge
Jordi Boggiano 2012-08-15 13:10:34 +02:00
parent 2d670fc5cb
commit dbd44d6bcf
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ EOF;
strpos($namespace, '_') === false ? preg_quote(strtr($namespace, '\\', '/')) : ''
);
foreach (ClassMapGenerator::createMap($dir, $whitelist) as $class => $path) {
if (0 === strpos($class, $namespace)) {
if ('' === $namespace || 0 === strpos($class, $namespace)) {
$path = '/'.$filesystem->findShortestPath(getcwd(), $path, true);
if (!isset($classMap[$class])) {
$classMap[$class] = '$baseDir . '.var_export($path, true).",\n";