Replace all "setQueryParam()" calls with "remove/replaceQueryParam()"
Summary: Ref T13250. See D20149. Mostly: clarify semantics. Partly: remove magic "null" behavior. Test Plan: Poked around, but mostly just inspection since these are pretty much one-for-one. Reviewers: amckinley Reviewed By: amckinley Subscribers: yelirekim Maniphest Tasks: T13250 Differential Revision: https://secure.phabricator.com/D20154
This commit is contained in:
@@ -54,7 +54,7 @@ final class PhabricatorAuthStartController
|
||||
}
|
||||
|
||||
$redirect_uri = $request->getRequestURI();
|
||||
$redirect_uri->setQueryParam('cleared', 1);
|
||||
$redirect_uri->replaceQueryParam('cleared', 1);
|
||||
return id(new AphrontRedirectResponse())->setURI($redirect_uri);
|
||||
}
|
||||
}
|
||||
@@ -64,7 +64,7 @@ final class PhabricatorAuthStartController
|
||||
// the workflow will continue normally.
|
||||
if ($did_clear) {
|
||||
$redirect_uri = $request->getRequestURI();
|
||||
$redirect_uri->setQueryParam('cleared', null);
|
||||
$redirect_uri->removeQueryParam('cleared');
|
||||
return id(new AphrontRedirectResponse())->setURI($redirect_uri);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user