We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f2bf4e commit a2728c3Copy full SHA for a2728c3
1 file changed
src/Core/Interpreter.php
@@ -375,6 +375,7 @@ private function applyFilter(RuntimeValue $operand, Identifier|CallExpression $f
375
"abs" => $operand instanceof IntegerValue ? new IntegerValue(abs($operand->value)) : new FloatValue(abs($operand->value)),
376
"int" => new IntegerValue((int)floor($operand->value)),
377
"float" => new FloatValue((float)$operand->value),
378
+ "string" => new StringValue((string)$operand->value),
379
default => throw new \Exception("Unknown NumericValue filter: {$filter->value}"),
380
};
381
}
0 commit comments