File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 "simplesamlphp/composer-module-installer" : " ^1.3.4" ,
4040 "simplesamlphp/simplesamlphp" : " ^2.2.0" ,
4141 "simplesamlphp/xml-common" : " ^1.16.0" ,
42- "symfony/http-foundation" : " ^6.4.0"
42+ "symfony/http-foundation" : " ^6.4.0" ,
43+ "symfony/var-exporter" : " ^6.4.0"
4344 },
4445 "require-dev" : {
4546 "simplesamlphp/simplesamlphp-test-framework" : " ^1.7.0"
Original file line number Diff line number Diff line change 1010use SimpleSAML \Metadata ;
1111use SimpleSAML \Utils ;
1212use SimpleSAML \XML \DOMDocumentFactory ;
13+ use Symfony \Component \VarExporter \VarExporter ;
1314
1415/**
1516 * @package SimpleSAMLphp
@@ -620,7 +621,7 @@ public function writeMetadataFiles(string $outputDir): void
620621 foreach ($ elements as $ m ) {
621622 $ entityID = $ m ['metadata ' ]['entityid ' ];
622623 $ content .= "\n" . '$metadata[ \'' ;
623- $ content .= addslashes ($ entityID ) . '\'] = ' . var_export ($ m ['metadata ' ], true ) . '; ' . "\n" ;
624+ $ content .= addslashes ($ entityID ) . '\'] = ' . VarExporter:: export ($ m ['metadata ' ]) . '; ' . "\n" ;
624625 }
625626
626627 $ sysUtils = new Utils \System ();
You can’t perform that action at this time.
0 commit comments