Fixes Yii2 refactor #2630