Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Dec 13, 2019
1 parent 579034e commit 2a23145
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SAML2/Assertion.php
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,10 @@ public function decryptAttributes(XMLSecurityKey $key, array $blacklist = []): v
}

if (!array_key_exists($name, $this->attributes)) {
$this->attributes[$name] = [];
$attr = new Attribute();
$attr->setName($name);

$this->attributes[$name] = $attr;
}

$this->parseAttributeValue($attribute, $name);
Expand Down

0 comments on commit 2a23145

Please sign in to comment.