Skip to content

Commit 2011d70

Browse files
committed
Fix deprecated use of ${var}
1 parent 7bdaca1 commit 2011d70

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

  • modules/saml/src/Auth/Source

modules/saml/src/Auth/Source/SP.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -865,10 +865,12 @@ public function reauthenticate(array &$state): void
865865
* starting the authentication process again with a different IdP, or
866866
* cancel the current SSO attempt.
867867
*/
868-
Logger::warning(
869-
"Reauthentication after logout is needed. The IdP '${state['saml:sp:IdP']}' is not in the IDPList " .
870-
"provided by the Service Provider '${state['core:SP']}'."
871-
);
868+
Logger::warning(sprintf(
869+
"Reauthentication after logout is needed. The IdP '%s' is not in the IDPList "
870+
. "provided by the Service Provider '%s'.",
871+
$state['saml:sp:IdP'],
872+
$state['core:SP']
873+
));
872874

873875
$state['saml:sp:IdPMetadata'] = $this->getIdPMetadata($state['saml:sp:IdP']);
874876
$state['saml:sp:AuthId'] = $this->authId;

0 commit comments

Comments
 (0)