Skip to content

Commit 2800a6a

Browse files
committed
take @nicolas-grekas comment into account
1 parent 6b95702 commit 2800a6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/Extension/CodeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public function fileExcerpt(string $file, int $line, int $srcContext = 3): ?stri
173173

174174
return $this->formatFileExcerpt(
175175
array_map(
176-
static fn (string $line): string => self::fixCodeMarkup($line),
176+
self::fixCodeMarkup(...),
177177
$this->extractExcerptLines($lines, $line, $srcContext),
178178
),
179179
$line,

0 commit comments

Comments
 (0)