Skip to content

Commit 5b6960f

Browse files
committed
Remove wrong assertion
1 parent f7beaa7 commit 5b6960f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Shib13/AuthnResponse.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,9 @@ private function doXPathQuery(string $query, DOMNode $node = null): DOMNodeList
208208
*/
209209
public function getSessionIndex(): ?string
210210
{
211-
Assert::isInstanceOf($node, DOMNode::class);
212-
213211
$query = '/shibp:Response/shib:Assertion/shib:AuthnStatement';
214212
$nodelist = $this->doXPathQuery($query);
213+
215214
if ($node = $nodelist->item(0)) {
216215
return $node->getAttribute('SessionIndex');
217216
}

0 commit comments

Comments
 (0)