Skip to content

Commit

Permalink
Missing method getDeprecatedTagValues()
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Apr 23, 2019
1 parent 9558a70 commit 472d316
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Ast/PhpDoc/PhpDocNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,20 @@ public function getThrowsTagValues(): array
}


/**
* @return \PHPStan\PhpDocParser\Ast\PhpDoc\DeprecatedTagValueNode[]
*/
public function getDeprecatedTagValues(): array
{
return array_column(
array_filter($this->getTagsByName('@deprecated'), static function (PhpDocTagNode $tag): bool {
return $tag->value instanceof DeprecatedTagValueNode;
}),
'value'
);
}


/**
* @return PropertyTagValueNode[]
*/
Expand Down

0 comments on commit 472d316

Please sign in to comment.