Skip to content
Permalink
Browse files

strict fix

  • Loading branch information
dg committed Jan 8, 2020
1 parent f7ee5c2 commit d21d60cf8a675fb94a62073473dedfc7d972270c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Bridges/Nette/Bridge.php
@@ -52,7 +52,7 @@ public static function renderLatteError(?\Throwable $e): ?array
$lines = file($file);
if (preg_match('#// source: (\S+\.latte)#', $lines[1], $m) && @is_file($m[1])) { // @ - may trigger error
$templateFile = $m[1];
$templateLine = $e->getLine() && preg_match('#/\* line (\d+) \*/#', $lines[$e->getLine() - 1], $m) ? (int) $m[1] : null;
$templateLine = $e->getLine() && preg_match('#/\* line (\d+) \*/#', $lines[$e->getLine() - 1], $m) ? (int) $m[1] : 0;
return [
'tab' => 'Template',
'panel' => '<p><b>File:</b> ' . Helpers::editorLink($templateFile, $templateLine) . '</p>'

0 comments on commit d21d60c

Please sign in to comment.
You can’t perform that action at this time.