Skip to content

Commit 4d9f2b1

Browse files
committed
PhpDocBlock - only ask immediate traits
1 parent 1104170 commit 4d9f2b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpDoc/PhpDocBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public static function resolvePhpDocBlockForMethod(
196196
$docBlocksFromParents[] = $oneResult;
197197
}
198198

199-
foreach ($classReflection->getTraits(true) as $traitReflection) {
199+
foreach ($classReflection->getTraits() as $traitReflection) {
200200
if (!$traitReflection->hasNativeMethod($methodName)) {
201201
continue;
202202
}

0 commit comments

Comments
 (0)