File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 "psr/clock" : " ~1.0" ,
3131 "psr/http-message" : " ~2.0" ,
3232 "psr/log" : " ~3.0" ,
33- "simplesamlphp/assert" : " ~2 .0" ,
33+ "simplesamlphp/assert" : " ~3 .0" ,
3434 "simplesamlphp/xml-common" : " ~3.0" ,
3535 "simplesamlphp/xml-security" : " ~3.0" ,
3636 "simplesamlphp/xml-soap" : " ~3.0"
4242 "icanhazstring/composer-unused" : " ^0.9.6" ,
4343 "maglnet/composer-require-checker" : " ^4.20" ,
4444 "mockery/mockery" : " ~1.6" ,
45- "simplesamlphp/simplesamlphp" : " ~2.5 " ,
45+ "simplesamlphp/simplesamlphp" : " ^3.0@dev " ,
4646 "simplesamlphp/simplesamlphp-test-framework" : " ~2.0"
4747 },
4848 "suggest" : {
Original file line number Diff line number Diff line change 44
55namespace SimpleSAML \Test \SAML2 \Binding ;
66
7- use DOMDocument ;
87use Exception ;
98use Nyholm \Psr7 \ServerRequest ;
109use PHPUnit \Framework \Attributes \CoversClass ;
1615use SimpleSAML \SAML2 \Binding \HTTPArtifact ;
1716use SimpleSAML \SAML2 \XML \samlp \AbstractMessage ;
1817use SimpleSAML \SAML2 \XML \samlp \ArtifactResponse ;
18+ use SimpleSAML \XML \DOMDocumentFactory ;;
1919use SimpleSAML \XMLSecurity \TestUtils \PEMCertificatesMock ;
2020use SimpleSAML \XMLSecurity \XML \ds \Signature ;
2121
2222use function htmlspecialchars ;
23- use function method_exists ;
2423
2524/**
2625 * @package simplesamlphp\saml2
@@ -299,7 +298,7 @@ private static function buildMinimalDsSignature(string $signatureAlgorithm): Sig
299298 '<ds:SignatureValue>AA==</ds:SignatureValue> ' .
300299 '</ds:Signature> ' ;
301300
302- $ doc = new DOMDocument ('1.0 ' , 'UTF-8 ' );
301+ $ doc = DOMDocumentFactory:: create ('1.0 ' , 'UTF-8 ' );
303302 $ doc ->loadXML ($ xml );
304303
305304 return Signature::fromXML ($ doc ->documentElement );
You can’t perform that action at this time.
0 commit comments