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