Skip to content

Commit 6897869

Browse files
committed
Fix namespacedName
1 parent 06924f6 commit 6897869

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Type/Doctrine/QueryBuilder/QueryBuilderMethodDynamicReturnTypeExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ private function findClassNode(string $className, array $nodes): ?Class_
210210
foreach ($nodes as $node) {
211211
if (
212212
$node instanceof Class_
213+
&& $node->namespacedName !== null
213214
&& $node->namespacedName->toString() === $className
214215
) {
215216
return $node;

0 commit comments

Comments
 (0)