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'),

View file

@ -111,11 +111,11 @@ class Plugin extends Model
if ($this->polling_header) {
// Resolve Liquid variables in the polling header
$resolvedHeader = $this->resolveLiquidVariables($this->polling_header);
$headerLines = explode("\n", trim($resolvedHeader));
$headerLines = explode("\n", mb_trim($resolvedHeader));
foreach ($headerLines as $line) {
$parts = explode(':', $line, 2);
if (count($parts) === 2) {
$headers[trim($parts[0])] = trim($parts[1]);
$headers[mb_trim($parts[0])] = mb_trim($parts[1]);
}
}
}

View file

@ -46,7 +46,7 @@ class OidcProvider extends AbstractProvider implements ProviderInterface
if (str_ends_with($endpoint, '/.well-known/openid-configuration')) {
$this->baseUrl = str_replace('/.well-known/openid-configuration', '', $endpoint);
} else {
$this->baseUrl = rtrim($endpoint, '/');
$this->baseUrl = mb_rtrim($endpoint, '/');
}
$this->scopes = $scopes ?: ['openid', 'profile', 'email'];

View file

@ -144,7 +144,7 @@ class PluginExportService
$markup = preg_replace('/^<div class="view view--\{\{ size \}\}">\s*/', '', $markup);
$markup = preg_replace('/\s*<\/div>\s*$/', '', $markup);
return trim($markup);
return mb_trim($markup);
}
/**