Skip to content

Commit 83cd040

Browse files
committed
Remove non-issue
1 parent d264baa commit 83cd040

File tree

2 files changed

+5
-85
lines changed

2 files changed

+5
-85
lines changed

library/Message/StandardRenderer.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ public function __construct(
3636

3737
public function render(Result $result, Translator $translator, ?string $template = null): string
3838
{
39-
$parameters = $result->parameters;
40-
$parameters['name'] ??= $result->name ?? ($result->path !== null ? Quoted::fromPath($result->path) : null) ?? $this->placeholder('input', $result->input, $translator);
41-
$parameters['input'] = $result->input;
39+
$parameters = $result->parameters + [
40+
'path' => $result->path !== null ? Quoted::fromPath($result->path) : null,
41+
'input' => $result->input,
42+
];
43+
$parameters['name'] ??= $result->name ?? $parameters['path'] ?? $this->placeholder('input', $result->input, $translator);
4244

4345
$rendered = (string) preg_replace_callback(
4446
'/{{(\w+)(\|([^}]+))?}}/',

tests/feature/Issues/Issue1348Test.php

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)