@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | * @param array<string,array|string|integer> $context current compile context |
| 196 | 196 | * @param array<boolean|integer|string|array> $vars parsed arguments list |
| 197 | 197 | * |
| 198 | - * @return array<string> code representing passed expression |
|
| 198 | + * @return string[] code representing passed expression |
|
| 199 | 199 | */ |
| 200 | 200 | public static function compileSubExpression(&$context, $vars) { |
| 201 | 201 | $ret = static::customHelper($context, $vars, true, true); |
@@ -501,7 +501,7 @@ discard block |
||
| 501 | 501 | * @param array<boolean|integer|string|array> $vars parsed arguments list |
| 502 | 502 | * @param boolean $isEach the section is #each |
| 503 | 503 | * |
| 504 | - * @return string|null Return compiled code segment for the token |
|
| 504 | + * @return string Return compiled code segment for the token |
|
| 505 | 505 | */ |
| 506 | 506 | protected static function section(&$context, $vars, $isEach = false) { |
| 507 | 507 | $bs = 'null'; |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | * @param array<string,array|string|integer> $context current compile context |
| 532 | 532 | * @param array<boolean|integer|string|array> $vars parsed arguments list |
| 533 | 533 | * |
| 534 | - * @return string|null Return compiled code segment for the token |
|
| 534 | + * @return string Return compiled code segment for the token |
|
| 535 | 535 | */ |
| 536 | 536 | protected static function with(&$context, $vars) { |
| 537 | 537 | $v = isset($vars[1]) ? static::getVariableNameOrSubExpression($context, $vars[1]) : array(null, array()); |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | * @param array<boolean|integer|string|array> $vars parsed arguments list |
| 461 | 461 | * @param string|null $match should also match to this operator |
| 462 | 462 | * |
| 463 | - * @return boolean Return true |
|
| 463 | + * @return null|boolean Return true |
|
| 464 | 464 | */ |
| 465 | 465 | protected static function blockEnd(&$context, &$vars, $match = null) { |
| 466 | 466 | $context['level']--; |
@@ -742,7 +742,7 @@ discard block |
||
| 742 | 742 | * @param array<string,array|string|integer> $context Current context of compiler progress. |
| 743 | 743 | * @param string $name helper name |
| 744 | 744 | * |
| 745 | - * @return string|null $content helper function name or callable |
|
| 745 | + * @return boolean|null $content helper function name or callable |
|
| 746 | 746 | */ |
| 747 | 747 | public static function resolveHelper(&$context, &$name) { |
| 748 | 748 | if (isset($context['helpers'][$name])) { |