@@ -33,7 +33,7 @@ |
||
| 33 | 33 | public function getConfig($key = null, $default = null); |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * @return iterable<BlockParserInterface> |
|
| 36 | + * @return \ArrayIterator|null |
|
| 37 | 37 | */ |
| 38 | 38 | public function getBlockParsers(): iterable; |
| 39 | 39 | |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | * @param string $charBefore |
| 81 | 81 | * @param string $charAfter |
| 82 | 82 | * |
| 83 | - * @return bool[] |
|
| 83 | + * @return boolean[] |
|
| 84 | 84 | */ |
| 85 | 85 | private function determineFlanking(string $charBefore, string $charAfter) |
| 86 | 86 | { |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * @return mixed|false |
|
| 47 | + * @return string |
|
| 48 | 48 | * |
| 49 | 49 | * @phpstan-return TValue|false |
| 50 | 50 | */ |
@@ -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 | |
@@ -16,6 +16,9 @@ |
||
| 16 | 16 | |
| 17 | 17 | interface TableOfContentsGeneratorInterface |
| 18 | 18 | { |
| 19 | + /** |
|
| 20 | + * @return null|TableOfContents |
|
| 21 | + */ |
|
| 19 | 22 | public function generate(Document $document): ?TableOfContents; |
| 20 | 23 | } |
| 21 | 24 | |