We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8306a88 commit db47893Copy full SHA for db47893
src/Symfony/Component/ErrorHandler/ErrorRenderer/HtmlErrorRenderer.php
@@ -329,7 +329,7 @@ private function formatFileFromText(string $text)
329
{
330
return preg_replace_callback('/in ("|")?(.+?)\1(?: +(?:on|at))? +line (\d+)/s', function ($match) {
331
return 'in '.$this->formatFile($match[2], $match[3]);
332
- }, $text);
+ }, $text) ?? $text;
333
}
334
335
private function formatLogMessage(string $message, array $context)
0 commit comments