Skip to content

Commit 0d42ea1

Browse files
committed
Replace IllegalArgumentException with InvalidArgumentException
IllegalArgumentException doesn't exist in PHP Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
1 parent cc0e5c1 commit 0d42ea1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Saml2/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ public function getId()
426426
public function getAssertionId()
427427
{
428428
if (!$this->validateNumAssertions()) {
429-
throw new IllegalArgumentException("SAML Response must contain 1 Assertion.");
429+
throw new InvalidArgumentException("SAML Response must contain 1 Assertion.");
430430
}
431431
$assertionNodes = $this->_queryAssertion("");
432432
$id = null;

0 commit comments

Comments
 (0)