We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b6d22f commit 0d2ecf1Copy full SHA for 0d2ecf1
1 file changed
src/Runtime/StringValue.php
@@ -19,8 +19,9 @@ public function __construct(string $value)
19
"lower" => new FunctionValue(fn() => new StringValue(strtolower($this->value))),
20
"strip" => new FunctionValue(fn() => new StringValue(trim($this->value))),
21
"title" => new FunctionValue(fn() => new StringValue(toTitleCase($this->value))),
22
- "length" => new NumericValue(strlen($this->value))
+ "length" => new NumericValue(strlen($this->value)),
23
+ "rstrip" => new FunctionValue(fn() => new StringValue(rtrim($this->value))),
24
+ "lstrip" => new FunctionValue(fn() => new StringValue(ltrim($this->value)))
25
];
26
}
-
27
0 commit comments