Skip to content

Commit d84b76b

Browse files
committed
Fix PHPstan issue
1 parent 6d44e6b commit d84b76b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/SAML2/XML/md/RoleDescriptorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ public function testUnmarshallingUnregistered(): void
229229
$type = new XMLAttribute(C::NS_XSI, 'xsi', 'type', 'ssp:UnknownRoleDescriptorType');
230230
$type->toXML($element);
231231

232-
$descriptor = UnknownRoleDescriptor::fromXML($element);
232+
$descriptor = AbstractRoleDescriptor::fromXML($element);
233+
$this->assertInstanceOf(UnknownRoleDescriptor::class, $descriptor);
233234

234235
$this->assertCount(2, $descriptor->getKeyDescriptor());
235236
$this->assertInstanceOf(KeyDescriptor::class, $descriptor->getKeyDescriptor()[0]);

0 commit comments

Comments
 (0)