Skip to content

Commit 23f9997

Browse files
committed
Improve type-hints of the tag containers
1 parent 493d736 commit 23f9997

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Diff for: src/Tag/Description.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
namespace TypeLang\PHPDoc\Tag;
66

77
/**
8-
* @template-implements \IteratorAggregate<array-key, Tag>
8+
* @template-implements \IteratorAggregate<int<0, max>, Tag>
99
*/
10-
class Description implements \Stringable, TagProviderInterface, \IteratorAggregate
10+
class Description implements
11+
TagProviderInterface,
12+
\IteratorAggregate,
13+
\Stringable
1114
{
1215
use TagProvider;
1316

Diff for: src/Tag/TagProviderInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace TypeLang\PHPDoc\Tag;
66

77
/**
8-
* @template-extends \Traversable<array-key, Tag>
8+
* @template-extends \Traversable<int<0, max>, Tag>
99
*
1010
* @internal This is an internal library interface, please do not use it in your code.
1111
* @psalm-internal TypeLang\PHPDoc\Tag

0 commit comments

Comments
 (0)