mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
chore: update dependencies, chore: pint
This commit is contained in:
parent
fb506fa846
commit
0ffc0acc3f
7 changed files with 43 additions and 40 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue