mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 03:46:39 +00:00
The question I'm asking myself now is : how could I get $trace['line'] is not set if there's a check before the <= ? anyway, fixed
This commit is contained in:
+1
-1
@@ -165,7 +165,7 @@ class Twig_Error extends Exception
|
|||||||
{
|
{
|
||||||
if (isset($trace['line'])) {
|
if (isset($trace['line'])) {
|
||||||
foreach ($trace['object']->getDebugInfo() as $codeLine => $templateLine) {
|
foreach ($trace['object']->getDebugInfo() as $codeLine => $templateLine) {
|
||||||
if (isset($trace['line']) && $codeLine <= $trace['line']) {
|
if ($codeLine <= $trace['line']) {
|
||||||
return $templateLine;
|
return $templateLine;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user