Skip to content

Symfony crashes when using provider #7

@jsgoupil

Description

@jsgoupil

When using a provider, Symfony 2.2 crashes

{% highlight 'php' ['geshi'] %}
test
{% endhighlight %}

outputs this:

ob_start();        // line 41
echo "            test
";
$context['source_321381366344038'] = new Twig_Markup(ob_get_clean(), $this->env->getCharset());
$context['language_321381366344038'] = $this->getAttribute("php", "geshi", array(), "array"); // CRASHES HERE
$context['provider_321381366344038'] = null;

The error is:

Impossible to access a key ("geshi") on a "string" variable in ...twig

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions