See this: https://github.com/yiisoft/yii2/pull/3038/files#diff-37ce2b0674ccb8129c6a33875aec0bbfR151