|
@@ -195,7 +195,7 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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()); |