From 11ca7d17a9ad5735d592833c18656f1ae33e70ab Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Fri, 5 Jan 2018 00:58:34 +0100 Subject: [PATCH] Update SAMLParser.php --- lib/SimpleSAML/Metadata/SAMLParser.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/SimpleSAML/Metadata/SAMLParser.php b/lib/SimpleSAML/Metadata/SAMLParser.php index a7fee113c..4ee7cdda0 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.'); } -- GitLab