From b2679e407b5f72f6270ee9760630d7f5414da1e2 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 27 Sep 2023 15:49:25 +0000 Subject: [PATCH] fix tests --- Config/phpstan_autoloader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Config/phpstan_autoloader.php b/Config/phpstan_autoloader.php index 388c179..7bf995b 100755 --- a/Config/phpstan_autoloader.php +++ b/Config/phpstan_autoloader.php @@ -38,11 +38,11 @@ function module_autoloader($class) { } foreach ($paths as $path) { - if (\is_file($file = $path . $class2 . '.php') && \stripos($file, $class2) !== false) { + if (\is_file($file = $path . $class2 . '.php')) { include_once $file; return; - } elseif (\is_file($file = $path . $class3 . '.php') && \stripos($file, $class3) !== false) { + } elseif (\is_file($file = $path . $class3 . '.php') && \stripos($file, $class2) !== false) { include_once $file; return;