chore: update dependencies, chore: pint

This commit is contained in:
Benjamin Nussbaum 2025-08-27 11:25:46 +02:00
parent fb506fa846
commit 0ffc0acc3f
7 changed files with 43 additions and 40 deletions

View file

@ -39,7 +39,7 @@ class TemplateTag extends TagBlock
$templateNameExpression = $context->params->expression();
$this->templateName = match (true) {
is_string($templateNameExpression) => trim($templateNameExpression),
is_string($templateNameExpression) => mb_trim($templateNameExpression),
is_numeric($templateNameExpression) => (string) $templateNameExpression,
$templateNameExpression instanceof VariableLookup => (string) $templateNameExpression,
default => throw new SyntaxException('Template name must be a string, number, or variable'),