Workaround for yiisoft/yii2#632