@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * @param array<array> $vn variable name array. |
166 | 166 | * @param array<string,array|string|integer> $context current compile context |
167 | 167 | * |
168 | - * @return array<string|array> variable names |
|
168 | + * @return string variable names |
|
169 | 169 | * |
170 | 170 | * @expect array('array(array($in),array())', array('this')) when input array(null), array('flags'=>array('spvar'=>true)) |
171 | 171 | * @expect array('array(array($in,$in),array())', array('this', 'this')) when input array(null, null), array('flags'=>array('spvar'=>true)) |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * @param array<boolean|integer|string|array> $vars parsed arguments list |
193 | 193 | * @param array<string,array|string|integer> $context current compile context |
194 | 194 | * |
195 | - * @return array<string> code representing passed expression |
|
195 | + * @return string[] code representing passed expression |
|
196 | 196 | */ |
197 | 197 | public static function compileSubExpression($vars, &$context) { |
198 | 198 | $origSeperator = $context['ops']['seperator']; |
@@ -469,7 +469,7 @@ discard block |
||
469 | 469 | * @param array<boolean|integer|string|array> $vars parsed arguments list |
470 | 470 | * @param boolean $isEach the section is #each |
471 | 471 | * |
472 | - * @return string|null Return compiled code segment for the token |
|
472 | + * @return string Return compiled code segment for the token |
|
473 | 473 | */ |
474 | 474 | protected static function section(&$context, $vars, $isEach = false) { |
475 | 475 | if ($isEach) { |
@@ -489,7 +489,7 @@ discard block |
||
489 | 489 | * @param array<string,array|string|integer> $context current compile context |
490 | 490 | * @param array<boolean|integer|string|array> $vars parsed arguments list |
491 | 491 | * |
492 | - * @return string|null Return compiled code segment for the token |
|
492 | + * @return string Return compiled code segment for the token |
|
493 | 493 | */ |
494 | 494 | protected static function with(&$context, $vars) { |
495 | 495 | $v = isset($vars[1]) ? static::getVariableNameOrSubExpression($vars[1], $context) : array(null, array()); |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | * @param array<string,array|string|integer> $context current compile context |
214 | 214 | * @param array<boolean|integer|string|array> $vars parsed arguments list |
215 | 215 | * |
216 | - * @return boolean Return true when inline partial ends |
|
216 | + * @return boolean|null Return true when inline partial ends |
|
217 | 217 | */ |
218 | 218 | protected static function inlinePartial(&$context, $vars) { |
219 | 219 | if (count($context['inlinepartial']) > 0) { |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | * @param array<string,array|string|integer> $context current compile context |
245 | 245 | * @param array<boolean|integer|string|array> $vars parsed arguments list |
246 | 246 | * |
247 | - * @return boolean Return true always |
|
247 | + * @return boolean|null Return true always |
|
248 | 248 | */ |
249 | 249 | protected static function partialBlock(&$context, $vars) { |
250 | 250 | if (count($context['partialblock']) > 0) { |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | * |
415 | 415 | * @param array<string,array|string|integer> $context current compile context |
416 | 416 | * @param array<boolean|integer|string|array> $vars parsed arguments list |
417 | - * @param string|null $matchop should also match to this operator |
|
417 | + * @param string $match should also match to this operator |
|
418 | 418 | * |
419 | 419 | * @return boolean Return true |
420 | 420 | */ |
@@ -622,7 +622,7 @@ discard block |
||
622 | 622 | * @param array<string,array|string|integer> $context current compile context |
623 | 623 | * @param array<boolean|integer|string|array> $vars parsed arguments list |
624 | 624 | * |
625 | - * @return boolean Return true when it is custom helper |
|
625 | + * @return boolean|null Return true when it is custom helper |
|
626 | 626 | */ |
627 | 627 | public static function lookup(&$context, $vars) { |
628 | 628 | if (isset($vars[0][0]) && ($vars[0][0] === 'lookup')) { |
@@ -686,7 +686,7 @@ discard block |
||
686 | 686 | * @param array<string,array|string|integer> $context current compile context |
687 | 687 | * @param array<boolean|integer|string|array> $vars parsed arguments list |
688 | 688 | * |
689 | - * @return boolean Return true always |
|
689 | + * @return boolean|null Return true always |
|
690 | 690 | */ |
691 | 691 | protected static function inline(&$context, $vars) { |
692 | 692 | if (!$context['flags']['runpart']) { |