Skip to content

Commit c85384d

Browse files
authored
Remove string-casts
1 parent a620f95 commit c85384d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Binding/HTTPArtifact.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function getRedirectURL(AbstractMessage $message): string
8282
throw new Exception('Cannot get redirect URL, no Issuer set in the message.');
8383
}
8484
$artifact = base64_encode(
85-
"\x00\x04\x00\x00" . sha1((string)$issuer->getContent(), true) . $generatedId,
85+
"\x00\x04\x00\x00" . sha1($issuer->getContent()->getValue(), true) . $generatedId,
8686
);
8787
$artifactData = $message->toXML();
8888
$artifactDataString = $artifactData->ownerDocument?->saveXML($artifactData);
@@ -103,7 +103,7 @@ public function getRedirectURL(AbstractMessage $message): string
103103
}
104104

105105
$httpUtils = new HTTP();
106-
return $httpUtils->addURLparameters((string)$destination, $params);
106+
return $httpUtils->addURLparameters($destination->getValue(), $params);
107107
}
108108

109109

@@ -290,7 +290,7 @@ private function verifyArtifactResponseSignature(
290290
try {
291291
$verifier = $factory->getAlgorithm($signatureMethod, PublicKey::fromFile($file));
292292
return $artifactResponse->verify($verifier);
293-
} catch (\Exception $e) {
293+
} catch (Exception $e) {
294294
$lastException = $e;
295295
}
296296
}

0 commit comments

Comments
 (0)