Skip to content

Commit 0fd8c54

Browse files
committed
use realpath on autoload directories
1 parent ed2a76d commit 0fd8c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Autowire.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private function __construct(string $root, array $composer) {
4343
$composer['autoload']['psr-4'] ?? [],
4444
static fn ($directories) => map(
4545
(array) $directories,
46-
static fn (string $directory) => rtrim($root.'/'.$directory, '/').'/',
46+
static fn (string $directory) => realpath($root.'/'.$directory).'/',
4747
),
4848
);
4949
}

0 commit comments

Comments
 (0)