fix autoloading

This commit is contained in:
Dennis Eichhorn 2023-10-02 02:56:47 +00:00
parent d33875b632
commit c7c2218f1b

View File

@ -99,12 +99,10 @@ final class Autoloader
foreach (self::$paths as $path) {
if (($file = \realpath($path . $class2 . '.php')) !== false && \stripos($file, $class3) !== false) {
include_once $file;
echo $file . "\n";
return;
} elseif (\is_file($file = $path . $class . '.php')) {
include_once $file;
echo $file . "\n";
return;
}