diff --git a/src/SAML2/AuthnRequest.php b/src/SAML2/AuthnRequest.php index 8ce7f6927..4c2c8aef4 100644 --- a/src/SAML2/AuthnRequest.php +++ b/src/SAML2/AuthnRequest.php @@ -639,7 +639,7 @@ public function getAssertionConsumerServiceIndex() */ public function setAssertionConsumerServiceIndex($assertionConsumerServiceIndex) { - Assert::nullOrString($assertionConsumerServiceIndex); + Assert::nullOrInteger($assertionConsumerServiceIndex); $this->assertionConsumerServiceIndex = $assertionConsumerServiceIndex; }