Skip to content

Commit

Permalink
Use realpath for class inclusion checks. fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
tarikweiss committed Sep 9, 2024
1 parent 7519b0d commit 15bbe71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected function getAllClassesInPaths(): array
foreach ($classFilePaths as $classFilePath) {
require_once $classFilePath;

$includedClassFilePaths[] = $classFilePath;
$includedClassFilePaths[] = realpath($classFilePath);
}

}
Expand Down

0 comments on commit 15bbe71

Please sign in to comment.