@@ -223,6 +223,7 @@ public function setSchemasPath($path)
223
223
* Process the SAML Response sent by the IdP.
224
224
*
225
225
* @param string|null $requestId The ID of the AuthNRequest sent by this SP to the IdP
226
+ * @phpstan-return ($stay is true ? string : never)
226
227
*
227
228
* @throws Error
228
229
* @throws ValidationError
@@ -273,6 +274,7 @@ public function processResponse($requestId = null)
273
274
* @param bool $stay True if we want to stay (returns the url string) False to redirect
274
275
*
275
276
* @return string|null
277
+ * @phpstan-return ($stay is true ? string : never)
276
278
*
277
279
* @throws Error
278
280
*/
@@ -355,6 +357,7 @@ public function processSLO($keepLocalSession = false, $requestId = null, $retrie
355
357
* @param bool $stay True if we want to stay (returns the url string) False to redirect
356
358
*
357
359
* @return string|null
360
+ * @phpstan-return ($stay is true ? string : never)
358
361
*/
359
362
public function redirectTo ($ url = '' , array $ parameters = array (), $ stay = false )
360
363
{
@@ -536,6 +539,7 @@ public function getAttributeWithFriendlyName($friendlyName)
536
539
* @param string $nameIdValueReq Indicates to the IdP the subject that should be authenticated
537
540
*
538
541
* @return string|null If $stay is True, it return a string with the SLO URL + LogoutRequest + parameters
542
+ * @phpstan-return ($stay is true ? string : never)
539
543
*
540
544
* @throws Error
541
545
*/
@@ -576,6 +580,7 @@ public function login($returnTo = null, array $parameters = array(), $forceAuthn
576
580
* @param string|null $nameIdNameQualifier The NameID NameQualifier will be set in the LogoutRequest.
577
581
*
578
582
* @return string|null If $stay is True, it return a string with the SLO URL + LogoutRequest + parameters
583
+ * @phpstan-return ($stay is true ? string : never)
579
584
*
580
585
* @throws Error
581
586
*/
0 commit comments