We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9558a70 commit 472d316Copy full SHA for 472d316
src/Ast/PhpDoc/PhpDocNode.php
@@ -98,6 +98,20 @@ public function getThrowsTagValues(): array
98
}
99
100
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
115
/**
116
* @return PropertyTagValueNode[]
117
*/
0 commit comments