SAML: Set static type to pass static checks

Not totally clear if underlying code can actually return null, but
playing it safe to remain as-is for now for patch release.
This commit is contained in:
Dan Brown 2024-06-10 10:31:35 +01:00
parent d9b9e6c0b1
commit 11a7ccc37e
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -133,6 +133,7 @@ class Saml2Service
// value so that the exact encoding format is matched when checking the signature. // value so that the exact encoding format is matched when checking the signature.
// This is primarily due to ADFS encoding query params with lowercase percent encoding while // This is primarily due to ADFS encoding query params with lowercase percent encoding while
// PHP (And most other sensible providers) standardise on uppercase. // PHP (And most other sensible providers) standardise on uppercase.
/** @var ?string $samlRedirect */
$samlRedirect = $toolkit->processSLO(true, $requestId, true, null, true); $samlRedirect = $toolkit->processSLO(true, $requestId, true, null, true);
$errors = $toolkit->getErrors(); $errors = $toolkit->getErrors();