diff --git a/lib/Twig/Node.php b/lib/Twig/Node.php index 60a80f3c3..f9fe958f0 100644 --- a/lib/Twig/Node.php +++ b/lib/Twig/Node.php @@ -128,7 +128,7 @@ class Twig_Node implements Twig_NodeInterface */ public function getLine() { - @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getTemplateName() instead.', E_USER_DEPRECATED); + @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getTemplateLine() instead.', E_USER_DEPRECATED); return $this->lineno; }