@@ -332,10 +332,9 @@ public function processSLO($keepLocalSession = false, $requestId = null, $retrie
332332 *
333333 * @return string|null
334334 */
335- public function redirectTo ($ url = '' , $ parameters = array (), $ stay = false )
335+ public function redirectTo ($ url = '' , array $ parameters = array (), $ stay = false )
336336 {
337337 assert (is_string ($ url ));
338- assert (is_array ($ parameters ));
339338
340339 if (empty ($ url ) && isset ($ _REQUEST ['RelayState ' ])) {
341340 $ url = $ _REQUEST ['RelayState ' ];
@@ -475,10 +474,8 @@ public function getAttribute($name)
475474 *
476475 * @return string|null If $stay is True, it return a string with the SLO URL + LogoutRequest + parameters
477476 */
478- public function login ($ returnTo = null , $ parameters = array (), $ forceAuthn = false , $ isPassive = false , $ stay = false , $ setNameIdPolicy = true )
477+ public function login ($ returnTo = null , array $ parameters = array (), $ forceAuthn = false , $ isPassive = false , $ stay = false , $ setNameIdPolicy = true )
479478 {
480- assert (is_array ($ parameters ));
481-
482479 $ authnRequest = new AuthnRequest ($ this ->_settings , $ forceAuthn , $ isPassive , $ setNameIdPolicy );
483480
484481 $ this ->_lastRequest = $ authnRequest ->getXML ();
@@ -513,14 +510,12 @@ public function login($returnTo = null, $parameters = array(), $forceAuthn = fal
513510 * @param string|null $nameIdFormat The NameID Format will be set in the LogoutRequest.
514511 * @param string|null $nameIdNameQualifier The NameID NameQualifier will be set in the LogoutRequest.
515512 *
516- * @return If $stay is True, it return a string with the SLO URL + LogoutRequest + parameters
513+ * @return string|null If $stay is True, it return a string with the SLO URL + LogoutRequest + parameters
517514 *
518515 * @throws Error
519516 */
520- public function logout ($ returnTo = null , $ parameters = array (), $ nameId = null , $ sessionIndex = null , $ stay = false , $ nameIdFormat = null , $ nameIdNameQualifier = null )
517+ public function logout ($ returnTo = null , array $ parameters = array (), $ nameId = null , $ sessionIndex = null , $ stay = false , $ nameIdFormat = null , $ nameIdNameQualifier = null )
521518 {
522- assert (is_array ($ parameters ));
523-
524519 $ sloUrl = $ this ->getSLOurl ();
525520 if (empty ($ sloUrl )) {
526521 throw new Error (
0 commit comments