Fixed Yii2 refactor #2630