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