yiisoft/yii2-twig

Tag a release

schmunk42 opened this issue · 2 comments

What steps will reproduce the problem?

Install stable version, and use url-syntax from docs, like so:

{{ url(['/mycontroller2/myaction2'], {'myparam':123}) }}

What's expected?

A rendered page

What do you get instead?

Twig_Error_Runtime

An exception has been thrown during the rendering of a template ("Array to string conversion").

bildschirmfoto 2017-03-25 um 16 02 42

This commit 37c0e39 fixes this.

Additional info

Q A
Yii version 2.0.11 (Twig 2.0.6)
PHP version 7.1
Operating system Linux (Docker)

On it.

Nice, thank you.

Tests failed on PHP 7, btw. But looks like a phpunit issue.