https://github.com/yiisoft/yii2/pull/2360