protected function guessTemplateLine($trace)
{
- foreach ($trace['object']->getDebugInfo() as $codeLine => $templateLine) {
- if (isset($trace['line']) && $codeLine <= $trace['line']) {
- return $templateLine;
+ if (isset($trace['line'])) {
+ foreach ($trace['object']->getDebugInfo() as $codeLine => $templateLine) {
+ if (isset($trace['line']) && $codeLine <= $trace['line']) {
+ return $templateLine;
+ }
}
}