Skip to content

Commit 7c7538c

Browse files
committed
Don't inherit docs unless @inheritdoc tag exists
1 parent badc690 commit 7c7538c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PHPFUI/InstaDoc/Section/CodeCommon.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,9 @@ protected function getInheritedSummary(\phpDocumentor\Reflection\DocBlock $docBl
427427

428428
foreach ($tags as $index => $tag)
429429
{
430-
if (0 >= \stripos($tag->getName(), 'inheritdoc'))
430+
$pos = \stripos($tag->getName(), 'inheritdoc');
431+
432+
if (false !== $pos && 0 >= $pos)
431433
{
432434
$reflectionClass = $reflectionMethod->getDeclaringClass();
433435
$parent = $reflectionClass->getParentClass();

0 commit comments

Comments
 (0)