Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony crashes when using provider #7

Open
jsgoupil opened this issue Apr 19, 2013 · 1 comment
Open

Symfony crashes when using provider #7

jsgoupil opened this issue Apr 19, 2013 · 1 comment

Comments

@jsgoupil
Copy link
Contributor

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

@jsgoupil
Copy link
Contributor Author

The workaround is to not put the provider inside an array like.
So
{% highlight 'php' 'geshi' %} works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant