PHP7.2 - Illegal string offset 'type'

Hi,

I just switched to PHP7.2 on Yii2.0.13, and the broken down into PHP Warning – yii\base\ErrorException

Illegal string offset ‘type’ line 559, in file vendor\yiisoft\yii2\helpers\BaseHtml.php

Any idea on how to fix this?

Thanks,

The line 559 of BaseHtml.php is in the "input()" method.

These lines remain unchanged since Qiang Xue edited them 3 years ago.

Please see the source code history at github(https://github.com/yiisoft/yii2/blame/master/framework/helpers/BaseHtml.php)

It seems like the caller of the method might be setting the $options parameter to something other than an array.

Could you post the detailed call stack information?