From 0f4cd2dd742a52e5a3f58f890dc17ce2aca59bb8 Mon Sep 17 00:00:00 2001
From: Jaime Perez Crespo <jaime.perez@uninett.no>
Date: Wed, 5 Aug 2015 12:59:09 +0200
Subject: [PATCH] Bugfix & fix for phpdoc.

---
 lib/SimpleSAML/Metadata/SAMLParser.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/SimpleSAML/Metadata/SAMLParser.php b/lib/SimpleSAML/Metadata/SAMLParser.php
index 394038dbc..2e52614f4 100644
--- a/lib/SimpleSAML/Metadata/SAMLParser.php
+++ b/lib/SimpleSAML/Metadata/SAMLParser.php
@@ -384,7 +384,9 @@ class SimpleSAML_Metadata_SAMLParser
 
         if ($element instanceof SAML2_XML_md_EntityDescriptor) {
             $ret = new SimpleSAML_Metadata_SAMLParser($element, $maxExpireTime, $validators);
-            return array($ret->getEntityId() => $ret);
+            $ret = array($ret->getEntityId() => $ret);
+            /** @var SimpleSAML_Metadata_SAMLParser[] $ret */
+            return $ret;
         }
 
         assert('$element instanceof SAML2_XML_md_EntitiesDescriptor');
@@ -1065,7 +1067,7 @@ class SimpleSAML_Metadata_SAMLParser
                             'height' => $uiItem->height,
                             'width'  => $uiItem->width,
                         );
-                        if (!empty($uiItem->Lang)) {
+                        if (!empty($uiItem->lang)) {
                             $logo['lang'] = $uiItem->lang;
                         }
                         $ret['UIInfo']['Logo'][] = $logo;
-- 
GitLab