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 472d316

Browse files
Missing method getDeprecatedTagValues()
1 parent 9558a70 commit 472d316

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎src/Ast/PhpDoc/PhpDocNode.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,20 @@ public function getThrowsTagValues(): array
9898
}
9999

100100

101+
/**
102+
* @return \PHPStan\PhpDocParser\Ast\PhpDoc\DeprecatedTagValueNode[]
103+
*/
104+
public function getDeprecatedTagValues(): array
105+
{
106+
return array_column(
107+
array_filter($this->getTagsByName('@deprecated'), static function (PhpDocTagNode $tag): bool {
108+
return $tag->value instanceof DeprecatedTagValueNode;
109+
}),
110+
'value'
111+
);
112+
}
113+
114+
101115
/**
102116
* @return PropertyTagValueNode[]
103117
*/

0 commit comments

Comments
(0)

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