Skip to content

Commit e7c34e9

Browse files
committed
Use shorthand instantiation for typed textcontent types
1 parent 05fde5a commit e7c34e9

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"ext-dom": "*",
1515

1616
"simplesamlphp/assert": "~1.9",
17-
"simplesamlphp/xml-common": "~2.5",
18-
"simplesamlphp/xml-ws-policy": "~1.1",
19-
"simplesamlphp/xml-wss-core": "~1.2"
17+
"simplesamlphp/xml-common": "~2.6",
18+
"simplesamlphp/xml-ws-policy": "~1.2",
19+
"simplesamlphp/xml-wss-core": "~1.3"
2020
},
2121
"require-dev": {
2222
"simplesamlphp/simplesamlphp-test-framework": "~1.11",

tests/Addressing/XML/wsa_200408/RetryAfterTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use SimpleSAML\XML\DOMDocumentFactory;
1414
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
1515
use SimpleSAML\XML\TestUtils\SerializableElementTestTrait;
16-
use SimpleSAML\XMLSchema\Type\NonNegativeIntegerValue;
1716

1817
use function dirname;
1918
use function strval;
@@ -53,7 +52,7 @@ public static function setUpBeforeClass(): void
5352
*/
5453
public function testMarshalling(): void
5554
{
56-
$retryAfter = new RetryAfter(NonNegativeIntegerValue::fromInteger(30));
55+
$retryAfter = RetryAfter::fromString('30');
5756

5857
$this->assertEquals(
5958
self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement),

tests/Addressing/XML/wsa_200508/ProblemActionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function testMarshalling(): void
6262

6363
$problemAction = new ProblemAction(
6464
new Action(AnyURIValue::fromString('https://login.microsoftonline.com/login.srf'), [$attr1]),
65-
new SoapAction(AnyURIValue::fromString('http://www.example.com/')),
65+
SoapAction::fromString('http://www.example.com/'),
6666
[$attr1],
6767
);
6868

0 commit comments

Comments
 (0)