Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit 6b57bb8

Browse files
committed
Migrate to xsd-types
1 parent 4072268 commit 6b57bb8

102 files changed

Lines changed: 387 additions & 200 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/XML/wst_200512/AbstractBinarySecretType.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
use SimpleSAML\XML\ExtendableAttributesTrait;
1010
use SimpleSAML\XML\TypedTextContentTrait;
1111
use SimpleSAML\XMLSchema\Exception\InvalidDOMElementException;
12+
use SimpleSAML\XMLSchema\Type\AnyURIValue;
1213
use SimpleSAML\XMLSchema\Type\Base64BinaryValue;
13-
use SimpleSAML\XMLSchema\Type\Helper\AnyURIListValue;
1414
use SimpleSAML\XMLSchema\XML\Constants\NS;
1515

1616
/**
@@ -33,12 +33,12 @@ abstract class AbstractBinarySecretType extends AbstractWstElement
3333

3434
/**
3535
* @param \SimpleSAML\XMLSchema\Type\Base64BinaryValue $content
36-
* @param \SimpleSAML\XMLSchema\Type\Helper\AnyURIListValue|null $Type
36+
* @param \SimpleSAML\XMLSchema\Type\AnyURIValue|null $Type
3737
* @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
3838
*/
3939
final public function __construct(
4040
Base64BinaryValue $content,
41-
protected ?AnyURIListValue $Type = null,
41+
protected ?AnyURIValue $Type = null,
4242
array $namespacedAttributes = [],
4343
) {
4444
$this->setContent($content);
@@ -49,9 +49,9 @@ final public function __construct(
4949
/**
5050
* Get the Type property.
5151
*
52-
* @return \SimpleSAML\XMLSchema\Type\Helper\AnyURIListValue|null
52+
* @return \SimpleSAML\XMLSchema\Type\AnyURIValue|null
5353
*/
54-
public function getType(): ?AnyURIListValue
54+
public function getType(): ?AnyURIValue
5555
{
5656
return $this->Type;
5757
}
@@ -73,7 +73,7 @@ public static function fromXML(DOMElement $xml): static
7373

7474
return new static(
7575
Base64BinaryValue::fromString($xml->textContent),
76-
self::getAttribute($xml, 'Type', AnyURIListValue::class),
76+
self::getAttribute($xml, 'Type', AnyURIValue::class),
7777
self::getAttributesNSFromXML($xml),
7878
);
7979
}

src/XML/wst_200512/AbstractComputedKeyOpenEnum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SimpleSAML\WSSecurity\XML\wst_200512;
66

77
use SimpleSAML\XML\TypedTextContentTrait;
8-
use SimpleSAML\XMLSchema\Type\Helper\AnyURIListValue;
8+
use SimpleSAML\XMLSchema\Type\AnyURIValue;
99

1010
/**
1111
* A ComputedKeyOpenEnum element
@@ -20,5 +20,5 @@ abstract class AbstractComputedKeyOpenEnum extends AbstractWstElement
2020

2121

2222
/** @var string */
23-
public const TEXTCONTENT_TYPE = AnyURIListValue::class;
23+
public const TEXTCONTENT_TYPE = AnyURIValue::class;
2424
}

src/XML/wst_200512/AbstractKeyTypeOpenEnum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SimpleSAML\WSSecurity\XML\wst_200512;
66

77
use SimpleSAML\XML\TypedTextContentTrait;
8-
use SimpleSAML\XMLSchema\Type\Helper\AnyURIListValue;
8+
use SimpleSAML\XMLSchema\Type\AnyURIValue;
99

1010
/**
1111
* A KeyTypeOpenEnum element
@@ -20,5 +20,5 @@ abstract class AbstractKeyTypeOpenEnum extends AbstractWstElement
2020

2121

2222
/** @var string */
23-
public const TEXTCONTENT_TYPE = AnyURIListValue::class;
23+
public const TEXTCONTENT_TYPE = AnyURIValue::class;
2424
}

src/XML/wst_200512/AbstractRequestTypeOpenEnum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SimpleSAML\WSSecurity\XML\wst_200512;
66

77
use SimpleSAML\XML\TypedTextContentTrait;
8-
use SimpleSAML\XMLSchema\Type\Helper\AnyURIListValue;
8+
use SimpleSAML\XMLSchema\Type\AnyURIValue;
99

1010
/**
1111
* A RequestTypeOpenEnum element
@@ -20,5 +20,5 @@ abstract class AbstractRequestTypeOpenEnum extends AbstractWstElement
2020

2121

2222
/** @var string */
23-
public const TEXTCONTENT_TYPE = AnyURIListValue::class;
23+
public const TEXTCONTENT_TYPE = AnyURIValue::class;
2424
}

src/XML/wst_200512/AbstractStatusCodeOpenEnum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SimpleSAML\WSSecurity\XML\wst_200512;
66

77
use SimpleSAML\XML\TypedTextContentTrait;
8-
use SimpleSAML\XMLSchema\Type\Helper\AnyURIListValue;
8+
use SimpleSAML\XMLSchema\Type\AnyURIValue;
99

1010
/**
1111
* A StatusCodeOpenEnum element
@@ -20,5 +20,5 @@ abstract class AbstractStatusCodeOpenEnum extends AbstractWstElement
2020

2121

2222
/** @var string */
23-
public const TEXTCONTENT_TYPE = AnyURIListValue::class;
23+
public const TEXTCONTENT_TYPE = AnyURIValue::class;
2424
}

tests/WSSecurity/XML/fed/ClientPseudonymTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use SimpleSAML\XML\DOMDocumentFactory;
1919
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
2020
use SimpleSAML\XML\TestUtils\SerializableElementTestTrait;
21-
use SimpleSAML\XML\Utils\XPath;
21+
use SimpleSAML\XPath\XPath;
2222

2323
use function dirname;
2424
use function strval;

tests/WSSecurity/XML/fed/PseudonymTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use SimpleSAML\XML\DOMDocumentFactory;
2222
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
2323
use SimpleSAML\XML\TestUtils\SerializableElementTestTrait;
24-
use SimpleSAML\XML\Utils\XPath;
24+
use SimpleSAML\XPath\XPath;
2525

2626
use function dirname;
2727
use function strval;

tests/WSSecurity/XML/fed/ReferenceDigestTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
use SimpleSAML\XML\Attribute as XMLAttribute;
1515
use SimpleSAML\XML\DOMDocumentFactory;
1616
use SimpleSAML\XML\TestUtils\SerializableElementTestTrait;
17-
use SimpleSAML\XML\Type\Base64BinaryValue;
18-
use SimpleSAML\XML\Type\StringValue;
17+
use SimpleSAML\XMLSchema\Type\Base64BinaryValue;
18+
use SimpleSAML\XMLSchema\Type\StringValue;
1919

2020
use function dirname;
2121

tests/WSSecurity/XML/fed/ReferenceEPRTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
use SimpleSAML\XML\Chunk;
1919
use SimpleSAML\XML\DOMDocumentFactory;
2020
use SimpleSAML\XML\TestUtils\SerializableElementTestTrait;
21-
use SimpleSAML\XML\Type\AnyURIValue;
22-
use SimpleSAML\XML\Type\StringValue;
21+
use SimpleSAML\XMLSchema\Type\AnyURIValue;
22+
use SimpleSAML\XMLSchema\Type\StringValue;
2323

2424
use function dirname;
2525
use function strval;

tests/WSSecurity/XML/fed/ReferenceToken11Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use SimpleSAML\XML\DOMDocumentFactory;
1717
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
1818
use SimpleSAML\XML\TestUtils\SerializableElementTestTrait;
19-
use SimpleSAML\XML\Type\StringValue;
19+
use SimpleSAML\XMLSchema\Type\StringValue;
2020

2121
use function dirname;
2222

0 commit comments

Comments
 (0)