Skip to content

Commit

Permalink
Prevent most $parentPhpDocBlock->getClassReflection()->isBuiltin() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored and ondrejmirtes committed Aug 25, 2023
1 parent 2d58174 commit 869f0c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhpDoc/PhpDocInheritanceResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ private function docBlockTreeToResolvedDocBlock(PhpDocBlock $phpDocBlock, ?strin

foreach ($phpDocBlock->getParents() as $parentPhpDocBlock) {
if (
$parentPhpDocBlock->getClassReflection()->isBuiltin()
&& $functionName !== null
$functionName !== null
&& strtolower($functionName) === '__construct'
&& $parentPhpDocBlock->getClassReflection()->isBuiltin()
) {
continue;
}
Expand Down

0 comments on commit 869f0c7

Please sign in to comment.