I have the following branch template (the code is in one file):
{% macro renderJob(fields) %}
For some reason, after upgrading to twig/twig = v2.1.0
I get the following error:
It is not possible to call a method ("renderJob") in a string variable ("@ AppBundle / Jobs / form / job.html.twig").
I tried to figure out what causes this without luck. This works very well in 1.3.x
The fields
variable contains the correct data, but it seems that it cannot pass it to the renderJob
macro or cannot find the macro (which is odd)?
source share