@@ -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 | { |
@@ -85,7 +85,7 @@ |
||
85 | 85 | return $this->_end === null; |
86 | 86 | } |
87 | 87 | |
88 | - public function isValid(Context $context) |
|
88 | + public function isValid(Context $context) |
|
89 | 89 | { |
90 | 90 | if ($this->_valid === null) { |
91 | 91 | $this->validate($context); |
@@ -66,7 +66,7 @@ |
||
66 | 66 | 'string.nowdoc' => new Rule( |
67 | 67 | new RegexMatcher('/<<\s*\'(\w+)\';(?P<string>.*?)\n\1/sm', [ |
68 | 68 | 'string' => Token::NAME, |
69 | - 0 => 'keyword.nowdoc' |
|
69 | + 0 => 'keyword.nowdoc' |
|
70 | 70 | ]), ['context' => ['!comment']] |
71 | 71 | ), |
72 | 72 |
@@ -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 | { |