yiisoft/yii2-twig

Enh #43 Break compatibility?

Insolita opened this issue · 4 comments

What steps will reproduce the problem?

After upgrade to 2.1.0, the twig globals configuration stopped working as expected

   'globals'=>[
       'html'=>'\yii\helpers\Html'
       ... etc
  ]

What's expected?

it should be work, or throw exception about not-supported syntax

What do you get instead?

all usages of aliases declared in globals silently skipped and do nothing
after change configuration like as

   'globals'=>[
       'html'=>['class'=>'\yii\helpers\Html']
       ... etc
  ]

Everything began to work as before upgrade

Additional info

Q A
Yii vesion 2,0,11
PHP version 7,1,3
Operating system Arch

That's expected and is why release is tagged with 2.1 instead of 2.0.

well, but there is not a single mention of it - neither in the changelog, nor in the documentation, nor in the PR release

http://www.yiiframework.com/news/130/twig-extension-2-1-0-released/

This version is not fully backwards compatible with 2.0.6.

But I guess an UPGRADE document is needed...