Skip to content

Commit 4f56142

Browse files
committed
Merge branch '1.6.x' into 1.7.x
2 parents 3f58d11 + c175bb3 commit 4f56142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public function locateIdentifiersByType(Reflector $reflector, IdentifierType $id
293293
*/
294294
private function getReflectionClass(string $className): ?ReflectionClass
295295
{
296-
if (class_exists($className) || interface_exists($className) || trait_exists($className)) {
296+
if (class_exists($className, !$this->disableRuntimeReflectionProvider) || interface_exists($className, !$this->disableRuntimeReflectionProvider) || trait_exists($className, !$this->disableRuntimeReflectionProvider)) {
297297
$reflection = new ReflectionClass($className);
298298
$filename = $reflection->getFileName();
299299

0 commit comments

Comments
 (0)