Skip to content

Commit

Permalink
Fix dead assignment to
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jan 4, 2025
1 parent c458be6 commit c500591
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SAML11/XML/samlp/AbstractRequestType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit c500591

Please sign in to comment.