Skip to content

Commit 026097a

Browse files
committed
Docs.
1 parent 18821b9 commit 026097a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Hook.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55

66
/**
77
* @phpstan-import-type DocArray from Doc
8+
* @phpstan-type HookType 'action'|'filter'|'action_reference'|'filter_reference'
89
* @phpstan-type HookArray array{
910
* name: string,
10-
* aliases?: array<int, string>,
11+
* aliases?: list<string>,
1112
* file: string,
12-
* type: string,
13+
* type: HookType,
1314
* doc: DocArray,
1415
* args: int,
1516
* }
@@ -32,6 +33,7 @@ final class Hook {
3233

3334
/**
3435
* @var string
36+
* @phpstan-var HookType
3537
*/
3638
protected $type;
3739

0 commit comments

Comments
 (0)