Skip to content

Commit 869f0c7

Browse files
staabmondrejmirtes
authored andcommitted
Prevent most $parentPhpDocBlock->getClassReflection()->isBuiltin() calls
1 parent 2d58174 commit 869f0c7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/PhpDoc/PhpDocInheritanceResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ private function docBlockTreeToResolvedDocBlock(PhpDocBlock $phpDocBlock, ?strin
9494

9595
foreach ($phpDocBlock->getParents() as $parentPhpDocBlock) {
9696
if (
97-
$parentPhpDocBlock->getClassReflection()->isBuiltin()
98-
&& $functionName !== null
97+
$functionName !== null
9998
&& strtolower($functionName) === '__construct'
99+
&& $parentPhpDocBlock->getClassReflection()->isBuiltin()
100100
) {
101101
continue;
102102
}

0 commit comments

Comments
 (0)