Skip to content

Commit

Permalink
fix(ClassMap): 根目录生成类名错误
Browse files Browse the repository at this point in the history
  • Loading branch information
twinh committed Sep 1, 2024
1 parent 69e66df commit 85a8dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ClassMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected function guessClassName($file, $ignoreProject = false)
{
// 假设为根目录
if ('.' === $file[0]) {
$file = '\\' . ltrim($file, './');
$file = ltrim($file, './');
}

list($dir, $className) = explode('src/', $file);
Expand Down

0 comments on commit 85a8dcb

Please sign in to comment.