Fixing wrong function name in deprecation notice

This commit is contained in:
Kuba Werłos
2016-10-28 15:23:58 +02:00
parent 3ff5abf75b
commit 0a3d3c7ce1
+1 -1
View File
@@ -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;
}