https://github.com/yiisoft/yii2/pull/2177/files#r9182385