The expression $this->doEnterNode($node); of type Twig_Node|Twig_NodeInterface adds the type Twig_NodeInterface to the return on line 24 which is incompatible with the return type declared by the interface Twig_NodeVisitorInterface::enterNode of type Twig_Node.
Loading history...
25
}
26
27
6
public function leaveNode(Twig_Node $node, Twig_Environment $env)