Skip to content

Commit 9c71cfc

Browse files
committed
\OneLogin_Saml2_Utils::redirect returns a string or redirects and exits
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
1 parent e7e1bbf commit 9c71cfc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/Saml2/Auth.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ public function processSLO($keepLocalSession = false, $requestId = null, $retrie
291291
* @param string $url The target URL to redirect the user.
292292
* @param array $parameters Extra parameters to be passed as part of the url
293293
* @param bool $stay True if we want to stay (returns the url string) False to redirect
294+
* @return string|null
294295
*/
295296
public function redirectTo($url = '', $parameters = array(), $stay = false)
296297
{
@@ -422,7 +423,7 @@ public function getAttribute($name)
422423
* @param bool $stay True if we want to stay (returns the url string) False to redirect
423424
* @param bool $setNameIdPolicy When true the AuthNReuqest will set a nameIdPolicy element
424425
*
425-
* @return If $stay is True, it return a string with the SLO URL + LogoutRequest + parameters
426+
* @return string|null If $stay is True, it return a string with the SLO URL + LogoutRequest + parameters
426427
*/
427428
public function login($returnTo = null, $parameters = array(), $forceAuthn = false, $isPassive = false, $stay = false, $setNameIdPolicy = true)
428429
{
@@ -462,7 +463,7 @@ public function login($returnTo = null, $parameters = array(), $forceAuthn = fal
462463
* @param string|null $nameIdFormat The NameID Format will be set in the LogoutRequest.
463464
* @param string|null $nameIdNameQualifier The NameID NameQualifier will be set in the LogoutRequest.
464465
*
465-
* @return If $stay is True, it return a string with the SLO URL + LogoutRequest + parameters
466+
* @return string|null If $stay is True, it return a string with the SLO URL + LogoutRequest + parameters
466467
*
467468
* @throws OneLogin_Saml2_Error
468469
*/

0 commit comments

Comments
 (0)