@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
116 | - * @param string|string[] $characters |
|
116 | + * @param string[] $characters |
|
117 | 117 | * |
118 | 118 | * @return Delimiter|null |
119 | 119 | */ |
@@ -134,6 +134,9 @@ discard block |
||
134 | 134 | return $opener; |
135 | 135 | } |
136 | 136 | |
137 | + /** |
|
138 | + * @param Delimiter|null $stackBottom |
|
139 | + */ |
|
137 | 140 | public function processDelimiters(?Delimiter $stackBottom, DelimiterProcessorCollection $processors) |
138 | 141 | { |
139 | 142 | $openersBottom = []; |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | public function getConfig($key = null, $default = null); |
33 | 33 | |
34 | 34 | /** |
35 | - * @return iterable<BlockParserInterface> |
|
35 | + * @return \ArrayIterator|null |
|
36 | 36 | */ |
37 | 37 | public function getBlockParsers(): iterable; |
38 | 38 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | public function getDelimiterProcessors(): DelimiterProcessorCollection; |
50 | 50 | |
51 | 51 | /** |
52 | - * @return iterable<DocumentProcessorInterface> |
|
52 | + * @return \ArrayIterator|null |
|
53 | 53 | */ |
54 | 54 | public function getDocumentProcessors(): iterable; |
55 | 55 |
@@ -68,6 +68,10 @@ |
||
68 | 68 | self::mergeIfNeeded($first, $last); |
69 | 69 | } |
70 | 70 | |
71 | + /** |
|
72 | + * @param Text|null $first |
|
73 | + * @param Text|null $last |
|
74 | + */ |
|
71 | 75 | private static function mergeIfNeeded(?Text $first, ?Text $last) |
72 | 76 | { |
73 | 77 | if ($first === null || $last === null || $first === $last) { |