Skip to content

Commit eed8cc3

Browse files
committed
Params are everywhere.
1 parent 13276e5 commit eed8cc3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/Doc.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ public function getTags(): Tags {
5858
return $this->tags;
5959
}
6060

61+
/**
62+
* @return array<int, Tag>
63+
*/
64+
public function getParams(): array {
65+
return $this->getTags()->getParams();
66+
}
67+
6168
/**
6269
* @phpstan-param DocArray $data
6370
*/

src/Hook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function getArgs(): int {
8787
* @return array<int, Tag>
8888
*/
8989
public function getParams(): array {
90-
return $this->getDoc()->getTags()->getParams();
90+
return $this->getDoc()->getParams();
9191
}
9292

9393
/**

0 commit comments

Comments
 (0)