Skip to content

Commit c532bbe

Browse files
j-dsebastianbergmann
authored andcommitted
#34 Use canonical absolute paths to improve performance
1 parent 930e4df commit c532bbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/Factory.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ protected function getPathsAfterResolvingWildcards(array $paths): array
7272

7373
foreach ($paths as $path) {
7474
if ($locals = \glob($path, GLOB_ONLYDIR)) {
75-
$_paths = \array_merge($_paths, $locals);
75+
$_paths = \array_merge($_paths, \array_map('\realpath', $locals));
7676
} else {
77-
$_paths[] = $path;
77+
$_paths[] = \realpath($path);
7878
}
7979
}
8080

0 commit comments

Comments
 (0)