From cd0ff0c4781c5de253f68b6c6445651b69973855 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 24 Sep 2023 22:02:55 +0000 Subject: [PATCH] fix autoloader bug --- tests/Autoloader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Autoloader.php b/tests/Autoloader.php index 3e4fb27..351355b 100755 --- a/tests/Autoloader.php +++ b/tests/Autoloader.php @@ -33,8 +33,8 @@ final class Autoloader * @since 1.0.0 */ private static $paths = [ - __DIR__ . '/../', __DIR__ . '/../Karaka/', + __DIR__ . '/../', __DIR__ . '/../../', ]; @@ -59,7 +59,7 @@ final class Autoloader */ public static function addPath(string $path) : void { - self::$paths[] = $path; + self::$paths[] = \rtrim($path, '/\\') . '/'; } /**