From c175bb3d6063dc0cb92ddd499b64c0fe40f262b4 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Fri, 29 Apr 2022 18:29:43 +0200 Subject: [PATCH] Revert "With OPCache not corrupted, we can actually autoload things?" This reverts commit 691e89adfb4f605588e8a357abbbaec79814c8fa. --- .../BetterReflection/SourceLocator/AutoloadSourceLocator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php b/src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php index e6c1e3f596..51c2da7caf 100644 --- a/src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php +++ b/src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php @@ -293,7 +293,7 @@ public function locateIdentifiersByType(Reflector $reflector, IdentifierType $id */ private function getReflectionClass(string $className): ?ReflectionClass { - if (class_exists($className) || interface_exists($className) || trait_exists($className)) { + if (class_exists($className, !$this->disableRuntimeReflectionProvider) || interface_exists($className, !$this->disableRuntimeReflectionProvider) || trait_exists($className, !$this->disableRuntimeReflectionProvider)) { $reflection = new ReflectionClass($className); $filename = $reflection->getFileName();