lib/Twig/lib/Twig/Error.php
public function setTemplateFile($name)
    {
        @trigger_error(sprintf('The "%s" method is deprecated since version 1.27 and will be removed in 2.0. Use setSourceContext() instead.', __METHOD__), E_USER_DEPRECATED);

        $this->filename = $name;

        $this->updateRepr();
    }
public function setTemplateFile($name)
    {
        @trigger_error(sprintf('The "%s" method is deprecated since version 1.27 and will be removed in 2.0. Use setSourceContext() instead.', __METHOD__), E_USER_DEPRECATED);

        $this->filename = $name;

        $this->updateRepr();
    }
public function setTemplateFile ( $ name ) { @ trigger_error ( sprintf ( 'The "%s" method is deprecated since version 1.27 and will be removed in 2.0. Use setSourceContext() instead.' , __METHOD__ ) , E_USER_DEPRECATED ) ; $ this -> filename = $ name ; $ this -> updateRepr ( ) ; }
Sets the logical name where the error occurred.

@param string $name The name

@deprecated since 1.27 (to be removed in 2.0). Use setSourceContext() instead.
Sets the logical name where the error occurred .