Fix upgrade doc [skip ci]

Compare https://github.com/yiisoft/yii2/blob/2.0.0/framework/base/Security.php#L461 and https://github.com/yiisoft/yii2/blob/2.0.0-beta/framework/helpers/BaseSecurity.php#L215
Thanks! %)