Skip to content

Commit

Permalink
use realpath on autoload directories
Browse files Browse the repository at this point in the history
  • Loading branch information
mlebkowski committed Dec 18, 2024
1 parent ed2a76d commit 0fd8c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Autowire.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private function __construct(string $root, array $composer) {
$composer['autoload']['psr-4'] ?? [],
static fn ($directories) => map(
(array) $directories,
static fn (string $directory) => rtrim($root.'/'.$directory, '/').'/',
static fn (string $directory) => realpath($root.'/'.$directory).'/',
),
);
}
Expand Down

0 comments on commit 0fd8c54

Please sign in to comment.