fix autoloader bug

This commit is contained in:
Dennis Eichhorn 2023-09-24 22:02:55 +00:00
parent c813822ae5
commit cd0ff0c478

View File

@ -33,8 +33,8 @@ final class Autoloader
* @since 1.0.0 * @since 1.0.0
*/ */
private static $paths = [ private static $paths = [
__DIR__ . '/../',
__DIR__ . '/../Karaka/', __DIR__ . '/../Karaka/',
__DIR__ . '/../',
__DIR__ . '/../../', __DIR__ . '/../../',
]; ];
@ -59,7 +59,7 @@ final class Autoloader
*/ */
public static function addPath(string $path) : void public static function addPath(string $path) : void
{ {
self::$paths[] = $path; self::$paths[] = \rtrim($path, '/\\') . '/';
} }
/** /**