Fixes for latest Yii2 codebase