Skip to content

Commit

Permalink
Fix Psalm-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jan 27, 2024
1 parent 91a546c commit 48c192c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/WSSecurity/XML/auth/ConstrainedValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,18 @@ public function testMarshalling(string $class, string $xmlRepresentation): void
self::$resourcePath . $xmlRepresentation,
);

$constrainedValue = new ConstrainedValue(new $class(self::$value, null), [], true);
/**
* @var (
* \SimpleSAML\WSSecurity\XML\auth\ValueLessThan|
* \SimpleSAML\WSSecurity\XML\auth\ValueLessThanOrEqual|
* \SimpleSAML\WSSecurity\XML\auth\ValueGreaterThan|
* \SimpleSAML\WSSecurity\XML\auth\ValueGreaterThanOrEqual|
* \SimpleSAML\WSSecurity\XML\auth\ValueInRangen|
* \SimpleSAML\WSSecurity\XML\auth\ValueOneOf
* ) $item
*/
$item = new $class(self::$value, null);
$constrainedValue = new ConstrainedValue($item, [], true);

$this->assertEquals(
$xmlRepresentation->saveXML($xmlRepresentation->documentElement),
Expand Down

0 comments on commit 48c192c

Please sign in to comment.