Skip to content

Commit a5f06f7

Browse files
committed
Fix namespaces
1 parent 093ec2d commit a5f06f7

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

src/XML/ds/Signature.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class Signature extends AbstractDsElement
2727
/** @var string[] */
2828
protected array $certificates = [];
2929

30-
/** @var SignatureValue */
30+
/** @var \SimpleSAML\XMLSecurity\XML\ds\SignatureValue */
3131
protected SignatureValue $value;
3232

3333
/** @var \SimpleSAML\XMLSecurity\XMLSecurityKey|null */
@@ -41,6 +41,7 @@ final class Signature extends AbstractDsElement
4141
* Signature constructor.
4242
*
4343
* @param string $algorithm
44+
* @param \SimpleSAML\XMLSecurity\XML\ds\SignatureValue $value
4445
* @param string[] $certificates
4546
* @param \SimpleSAML\XMLSecurity\XMLSecurityKey|null $key
4647
*
@@ -79,7 +80,7 @@ public function getAlgorithm(): string
7980
*/
8081
protected function setAlgorithm(string $algorithm): void
8182
{
82-
Assert::notEmpty($algorithm, 'Signature algorithm cannot be empty');
83+
Assert::notWhitespaceOnly($algorithm, 'Signature algorithm cannot be empty');
8384
$this->algorithm = $algorithm;
8485
}
8586

@@ -126,7 +127,7 @@ protected function setKey(?XMLSecurityKey $key): void
126127
/**
127128
* Get the SignatureValue corresponding to this signature.
128129
*
129-
* @return SignatureValue
130+
* @return \SimpleSAML\XMLSecurity\XML\ds\SignatureValue
130131
*/
131132
public function getSignatureValue(): SignatureValue
132133
{
@@ -137,7 +138,7 @@ public function getSignatureValue(): SignatureValue
137138
/**
138139
* Set the SignatureValue.
139140
*
140-
* @param SignatureValue $value
141+
* @param \SimpleSAML\XMLSecurity\XML\ds\SignatureValue $value
141142
*/
142143
protected function setSignatureValue(SignatureValue $value): void
143144
{
@@ -155,7 +156,7 @@ public function getSigner(): XMLSecurityDSig
155156

156157

157158
/**
158-
* @param DOMElement $xml
159+
* @param \DOMElement $xml
159160
*
160161
* @return \SimpleSAML\XML\AbstractXMLElement
161162
* @throws \Exception

src/XML/ds/SignatureValue.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private function setValue(string $value): void
5656
/**
5757
* Convert XML into a SignatureValue
5858
*
59-
* @param DOMElement $xml The XML element we should load
59+
* @param \DOMElement $xml The XML element we should load
6060
* @return self
6161
*
6262
* @throws \SimpleSAML\XML\Exception\InvalidDOMElementException If the qualified name of the supplied element is
@@ -74,8 +74,8 @@ public static function fromXML(DOMElement $xml): object
7474
/**
7575
* Convert this SignatureValue to XML.
7676
*
77-
* @param DOMElement|null $parent The element we should append this SignatureValue element to.
78-
* @return DOMElement
77+
* @param \DOMElement|null $parent The element we should append this SignatureValue element to.
78+
* @return \DOMElement
7979
*/
8080
public function toXML(DOMElement $parent = null): \DOMElement
8181
{
@@ -84,4 +84,4 @@ public function toXML(DOMElement $parent = null): \DOMElement
8484

8585
return $e;
8686
}
87-
}
87+
}

tests/XML/ds/SignatureValueTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use SimpleSAML\XMLSecurity\XML\ds\SignatureValue;
1111

1212
/**
13-
* Class \SimpleSAML\XMLSecurity\XML\ds\SignatureValue
13+
* Class \SimpleSAML\XMLSecurity\XML\ds\SignatureValueTest
1414
*
1515
* @covers \SimpleSAML\XMLSecurity\XML\ds\AbstractDsElement
1616
* @covers \SimpleSAML\XMLSecurity\\XML\ds\SignatureValue

0 commit comments

Comments
 (0)