Skip to content

Commit 6dfd689

Browse files
committed
More types.
1 parent 32830bb commit 6dfd689

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/Hook.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ final class Hook {
2323

2424
/**
2525
* @var ?array<int, string>
26+
* @phpstan-var ?list<string>
2627
*/
2728
protected $aliases;
2829

@@ -62,6 +63,7 @@ public function getName(): string {
6263

6364
/**
6465
* @return ?array<int, string>
66+
* @phpstan-return ?list<string>
6567
*/
6668
public function getAliases(): ?array {
6769
return $this->aliases;

src/Tag.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public function getContent(): string {
7070

7171
/**
7272
* @return ?array<int, string>
73+
* @phpstan-return ?list<string>
7374
*/
7475
public function getTypes(): ?array {
7576
return $this->types;

src/Tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/**
77
* @phpstan-import-type TagArray from Tag
8-
* @phpstan-type TagsArray array<int, TagArray>
8+
* @phpstan-type TagsArray list<TagArray>
99
* @implements \IteratorAggregate<int, Tag>
1010
*/
1111
final class Tags implements \Countable, \IteratorAggregate {

0 commit comments

Comments
 (0)