From 15bbe71808b934dafef3af2a48d51d0ca22e955a Mon Sep 17 00:00:00 2001 From: Tarik Weiss Date: Mon, 9 Sep 2024 21:59:42 +0200 Subject: [PATCH] Use realpath for class inclusion checks. fixes #1 --- src/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Router.php b/src/Router.php index 0d5ff99..07a9778 100644 --- a/src/Router.php +++ b/src/Router.php @@ -76,7 +76,7 @@ protected function getAllClassesInPaths(): array foreach ($classFilePaths as $classFilePath) { require_once $classFilePath; - $includedClassFilePaths[] = $classFilePath; + $includedClassFilePaths[] = realpath($classFilePath); } }