@@ -151,7 +151,7 @@ |
||
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | /** |
| 154 | - * @return Token|null|false |
|
| 154 | + * @return Token |
|
| 155 | 155 | */ |
| 156 | 156 | public function getEnd() |
| 157 | 157 | { |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | /** |
| 26 | 26 | * RegexMatcher constructor. |
| 27 | 27 | * |
| 28 | - * @param $regex |
|
| 28 | + * @param string $regex |
|
| 29 | 29 | * @param callable $callable |
| 30 | 30 | */ |
| 31 | 31 | public function __construct($regex, callable $callable) |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | /** |
| 143 | 143 | * @param bool $embedded |
| 144 | 144 | * |
| 145 | - * @return Rule[] |
|
| 145 | + * @return \Generator |
|
| 146 | 146 | */ |
| 147 | 147 | private function _rules($embedded = false) |
| 148 | 148 | { |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | * |
| 169 | 169 | * @param $embedded |
| 170 | 170 | * |
| 171 | - * @return Rule|\Kadet\Highlighter\Parser\Rule[] |
|
| 171 | + * @return Rule |
|
| 172 | 172 | */ |
| 173 | 173 | public function getEnds($embedded = false) |
| 174 | 174 | { |