Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f8ae3af

Browse files
Extended detection of @inheritdoc in BaseDoc (#218)
1 parent 0b16d85 commit f8ae3af

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Yii Framework 2 apidoc extension Change Log
55
-----------------------
66

77
- Bug #210: Fixed invalid attempt to scan parent class of interface with `@inheritdoc` tag on a method (bizley)
8+
- Bug #218: Extended detection of `@inheritdoc` tag in `BaseDoc` (WinterSilence)
89

910

1011
2.1.6 May 05, 2021

‎models/BaseDoc.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function __construct($reflector = null, $context = null, $config = [])
144144
}
145145
}
146146

147-
if ($this->shortDescription === '{@inheritdoc}') {
147+
if (in_array($this->shortDescription, ['{@inheritdoc}', '{@inheritDoc}', '@inheritdoc', '@inheritDoc'], true)) {
148148
// Mock up parsing of '{@inheritdoc}' (in brackets) tag, which is not yet supported at "phpdocumentor/reflection-docblock" 2.x
149149
// todo consider removal in case of "phpdocumentor/reflection-docblock" upgrade
150150
$this->tags[] = new Tag('inheritdoc', '');

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /