Skip to content

Commit d1a9320

Browse files
authored
Fix deprecated string-issuer
1 parent cdeb3ce commit d1a9320

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/SAML2/HTTPArtifact.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use SimpleSAML\Utils\HTTP;
1313

1414
use SAML2\Utilities\Temporal;
15+
use SAML2\XML\saml\Issuer;
1516

1617
/**
1718
* Class which implements the HTTP-Artifact binding.
@@ -130,9 +131,9 @@ public function receive(): Message
130131
$ar = new ArtifactResolve();
131132

132133
/* Set the request attributes */
134+
$issuer = new Issuer($this->spMetadata->getString('entityid'));
133135

134-
/** @psalm-suppress UndefinedClass */
135-
$ar->setIssuer($this->spMetadata->getString('entityid'));
136+
$ar->setIssuer($issuer);
136137
$ar->setArtifact($_REQUEST['SAMLart']);
137138
$ar->setDestination($endpoint['Location']);
138139

0 commit comments

Comments
 (0)