@@ -16,7 +16,7 @@ |
||
16 | 16 | public function getContent(): string; |
17 | 17 | |
18 | 18 | /** |
19 | - * @return iterable<int, string> |
|
19 | + * @return \Generator string> |
|
20 | 20 | */ |
21 | 21 | public function getLines(): iterable; |
22 | 22 |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | public function getConfig(?string $key = null, $default = null); |
31 | 31 | |
32 | 32 | /** |
33 | - * @return iterable<BlockStartParserInterface> |
|
33 | + * @return \Traversable |
|
34 | 34 | */ |
35 | 35 | public function getBlockStartParsers(): iterable; |
36 | 36 | |
@@ -55,6 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Dispatches the given event to listeners |
58 | + * @return void |
|
58 | 59 | */ |
59 | 60 | public function dispatch(AbstractEvent $event): void; |
60 | 61 | } |
@@ -29,6 +29,9 @@ |
||
29 | 29 | */ |
30 | 30 | protected $referenceMap; |
31 | 31 | |
32 | + /** |
|
33 | + * @param ReferenceMapInterface $referenceMap |
|
34 | + */ |
|
32 | 35 | public function __construct(?ReferenceMapInterface $referenceMap = null) |
33 | 36 | { |
34 | 37 | $this->setStartLine(1); |
@@ -141,6 +141,9 @@ |
||
141 | 141 | return $this->getIndent() >= self::INDENT_LEVEL; |
142 | 142 | } |
143 | 143 | |
144 | + /** |
|
145 | + * @param integer $index |
|
146 | + */ |
|
144 | 147 | public function getCharacter(?int $index = null): ?string |
145 | 148 | { |
146 | 149 | if ($index === null) { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
49 | - * @return mixed|false |
|
49 | + * @return string |
|
50 | 50 | * |
51 | 51 | * @phpstan-return T|false |
52 | 52 | */ |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | - * @param Attributes|AttributesInline $node |
|
64 | + * @param Node $node |
|
65 | 65 | * |
66 | 66 | * @return array<Node|string|null> |
67 | 67 | */ |
@@ -125,6 +125,7 @@ discard block |
||
125 | 125 | |
126 | 126 | /** |
127 | 127 | * Get any previous block (sibling or parent) this might apply to |
128 | + * @param Node $node |
|
128 | 129 | */ |
129 | 130 | private static function getNext(?Node $node = null): ?Node |
130 | 131 | { |