Skip to content
This repository was archived by the owner on Mar 2, 2018. It is now read-only.

Commit 9718ec7

Browse files
committed
Remove $idpInfo
PhanUndeclaredVariableDim Variable $idpInfo was undeclared, but array fields are being added to it. Signed-off-by: Lukas Reschke <[email protected]>
1 parent d43797d commit 9718ec7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/Saml2/IdPMetadataParser.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,11 @@ public static function parseXML($xml, $entityId = null, $desiredNameIdFormat = n
144144
if (!empty($keyDescriptorCertSigningNodes) || !empty($keyDescriptorCertEncryptionNodes)) {
145145
$metadataInfo['idp']['x509certMulti'] = array();
146146
if (!empty($keyDescriptorCertSigningNodes)) {
147-
$idpInfo['x509certMulti']['signing'] = array();
148147
foreach ($keyDescriptorCertSigningNodes as $keyDescriptorCertSigningNode) {
149148
$metadataInfo['idp']['x509certMulti']['signing'][] = OneLogin_Saml2_Utils::formatCert($keyDescriptorCertSigningNode->nodeValue, false);
150149
}
151150
}
152151
if (!empty($keyDescriptorCertEncryptionNodes)) {
153-
$idpInfo['x509certMulti']['encryption'] = array();
154152
foreach ($keyDescriptorCertEncryptionNodes as $keyDescriptorCertEncryptionNode) {
155153
$metadataInfo['idp']['x509certMulti']['encryption'][] = OneLogin_Saml2_Utils::formatCert($keyDescriptorCertEncryptionNode->nodeValue, false);
156154
}

0 commit comments

Comments
 (0)