Skip to content

Commit 3c1a05e

Browse files
file path issue fixed.
1 parent 37c422b commit 3c1a05e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/generator.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ public static function create_map( $path, $args = array() ) {
9999
$cwd = realpath( getcwd() );
100100

101101
foreach ( $path as $file ) {
102-
$file_path = $file->getPathname();
103-
$file_path_base = $file_path;
102+
$file_path = $file->getPathname();
104103
if ( ! in_array( pathinfo( $file_path, PATHINFO_EXTENSION ), array( 'php', 'inc', 'hh' ), true ) ) {
105104
continue;
106105
}
@@ -138,7 +137,7 @@ public static function create_map( $path, $args = array() ) {
138137
}
139138

140139
if ( false === $failed && ! isset( $map[ $class ] ) ) {
141-
$map[ $class ] = ( false === $args['fullpath'] ) ? $file_path_base : $file_path;
140+
$map[ $class ] = ( false === $args['fullpath'] ) ? $file->getrelativePathname() : $file_path;
142141
}
143142
}
144143
}

0 commit comments

Comments
 (0)