diff --git a/lib/SimpleSAML/Metadata/SAMLParser.php b/lib/SimpleSAML/Metadata/SAMLParser.php
index a7fee113ca66925f19aa76afb4813bbdeb5ac1d7..4ee7cdda0735571fae7b5b8bb0e6b6fecfeb2aac 100644
--- a/lib/SimpleSAML/Metadata/SAMLParser.php
+++ b/lib/SimpleSAML/Metadata/SAMLParser.php
@@ -267,8 +267,7 @@ class SimpleSAML_Metadata_SAMLParser
     public static function parseElement($entityElement)
     {
         assert($entityElement instanceof \SAML2\XML\md\EntityDescriptor);
-
-        return new SimpleSAML_Metadata_SAMLParser($entityElement, null);
+        return new SimpleSAML_Metadata_SAMLParser($entityElement, null, array());
     }
 
 
@@ -285,7 +284,6 @@ class SimpleSAML_Metadata_SAMLParser
      */
     public static function parseDescriptorsFile($file)
     {
-
         if ($file === null) {
             throw new Exception('Cannot open file NULL. File name not specified.');
         }