diff --git a/src/SAML11/XML/samlp/AbstractRequestType.php b/src/SAML11/XML/samlp/AbstractRequestType.php index 8e6837c..83a2960 100644 --- a/src/SAML11/XML/samlp/AbstractRequestType.php +++ b/src/SAML11/XML/samlp/AbstractRequestType.php @@ -86,10 +86,10 @@ protected function toUnsignedXML(?DOMElement $parent = null): DOMElement { $e = parent::toUnsignedXML($parent); - $request = $this->getRequest(); - $request = is_array($request) ? $request : [$request]; + $requests = $this->getRequest(); + $requests = is_array($requests) ? $requests : [$requests]; - foreach ($this->getRequest() as $request) { + foreach ($requests as $request) { $request->toXML($e); }