Skip to content

[TwigBundle] Attempted to call an undefined method named "getTemplateName" of class "Twig_Error_Runtime". #21176

Closed
@attila901

Description

@attila901
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.2.1, 3.1.8, 2.8.15, 2.7.22

Twig_Error::getTemplateName was removed with twigphp/Twig@b8dabf6#diff-e7bace45505091def27fd3bcf8592eafL102 commit.

In TwigEngine::render function trying to call this missing function:
9218cac#diff-27458b03974dca07a87d506fcce0a522R77

Output:

Attempted to call an undefined method named "getTemplateName" of class "Twig_Error_Runtime".
Did you mean to call e.g. "getTemplateLine" or "setTemplateLine"?

/cc @nicolas-grekas

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions