Skip to content

Commit 30f5b1c

Browse files
committed
Fix phpstan issue
1 parent 91e31f5 commit 30f5b1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/XML/ds/KeyInfo.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use SimpleSAML\XML\XsNamespace as NS;
1414
use SimpleSAML\XMLSecurity\Constants as C;
1515
use SimpleSAML\XMLSecurity\Exception\InvalidArgumentException;
16+
use SimpleSAML\XMLSecurity\XML\ds\AbstractDsElement;
1617

1718
/**
1819
* Class representing a ds:KeyInfo element.
@@ -53,7 +54,7 @@ public function __construct(
5354
Assert::nullOrValidNCName($Id);
5455

5556
foreach ($info as $item) {
56-
if ($item->getNamespaceURI() === static::NS) {
57+
if ($item instanceof AbstractDsElement) {
5758
Assert::isInstanceOfAny(
5859
$item,
5960
[KeyName::class, KeyValue::class, RetrievalMethod::class, X509Data::class],

0 commit comments

Comments
 (0)