https://github.com/yiisoft/yii/pull/2604#r5039267