Skip to content

Commit

Permalink
Restore the posibility to omit optional digestAlgorithm on PolicyRefe…
Browse files Browse the repository at this point in the history
…rence
  • Loading branch information
tvdijen committed Oct 8, 2024
1 parent dc4315c commit 1d4ad55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XML/wsp/PolicyReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ final class PolicyReference extends AbstractWspElement
public function __construct(
protected string $URI,
protected ?string $Digest = null,
protected ?string $DigestAlgorithm = null,
protected ?string $DigestAlgorithm = 'http://schemas.xmlsoap.org/ws/2004/09/policy/Sha1Exc',
array $namespacedAttributes = [],
) {
Assert::validURI($URI, SchemaViolationException::class);
Expand Down Expand Up @@ -71,7 +71,7 @@ public function getDigest(): ?string
*/
public function getDigestAlgorithm(): string
{
return $this->DigestAlgorithm ?? 'http://schemas.xmlsoap.org/ws/2004/09/policy/Sha1Exc';
return $this->DigestAlgorithm;
}


Expand Down

0 comments on commit 1d4ad55

Please sign in to comment.