From 20309013b9e7bc870dc7521fe4bdd25921646c1c Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Thu, 14 Nov 2024 13:20:22 +0100 Subject: [PATCH] Fix namespace for SOAP-elements --- phpstan-baseline.neon | 10 +++++----- src/SOAPClient.php | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 6b4fd6386..7b50f73ee 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -91,12 +91,12 @@ parameters: path: src/Configuration/SimpleSAMLConverter.php - - message: "#^Call to static method fromXML\\(\\) on an unknown class SimpleSAML\\\\SOAP11\\\\XML\\\\env\\\\Envelope\\.$#" + message: "#^Call to static method fromXML\\(\\) on an unknown class SimpleSAML\\\\SOAP11\\\\XML\\\\env_200106\\\\Envelope\\.$#" count: 1 path: src/SOAPClient.php - - message: "#^Call to static method fromXML\\(\\) on an unknown class SimpleSAML\\\\SOAP11\\\\XML\\\\env\\\\Fault\\.$#" + message: "#^Call to static method fromXML\\(\\) on an unknown class SimpleSAML\\\\SOAP11\\\\XML\\\\env_200106\\\\Fault\\.$#" count: 1 path: src/SOAPClient.php @@ -111,12 +111,12 @@ parameters: path: src/SOAPClient.php - - message: "#^Instantiated class SimpleSAML\\\\SOAP11\\\\XML\\\\env\\\\Body not found\\.$#" + message: "#^Instantiated class SimpleSAML\\\\SOAP11\\\\XML\\\\env_200106\\\\Body not found\\.$#" count: 1 path: src/SOAPClient.php - - message: "#^Instantiated class SimpleSAML\\\\SOAP11\\\\XML\\\\env\\\\Envelope not found\\.$#" + message: "#^Instantiated class SimpleSAML\\\\SOAP11\\\\XML\\\\env_200106\\\\Envelope not found\\.$#" count: 1 path: src/SOAPClient.php @@ -131,7 +131,7 @@ parameters: path: src/SOAPClient.php - - message: "#^Method SimpleSAML\\\\SAML2\\\\SOAPClient\\:\\:getSOAPFault\\(\\) has invalid return type SimpleSAML\\\\SOAP11\\\\XML\\\\env\\\\Fault\\.$#" + message: "#^Method SimpleSAML\\\\SAML2\\\\SOAPClient\\:\\:getSOAPFault\\(\\) has invalid return type SimpleSAML\\\\SOAP11\\\\XML\\\\env_200106\\\\Fault\\.$#" count: 1 path: src/SOAPClient.php diff --git a/src/SOAPClient.php b/src/SOAPClient.php index 5ccf2d3be..711fe9063 100644 --- a/src/SOAPClient.php +++ b/src/SOAPClient.php @@ -11,9 +11,9 @@ use SimpleSAML\SAML2\XML\samlp\AbstractMessage; use SimpleSAML\SAML2\XML\samlp\MessageFactory; use SimpleSAML\SOAP11\Utils\XPath; -use SimpleSAML\SOAP11\XML\env\Body; -use SimpleSAML\SOAP11\XML\env\Envelope; -use SimpleSAML\SOAP11\XML\env\Fault; +use SimpleSAML\SOAP11\XML\env_200106\Body; +use SimpleSAML\SOAP11\XML\env_200106\Envelope; +use SimpleSAML\SOAP11\XML\env_200106\Fault; use SimpleSAML\Utils\Config; use SimpleSAML\Utils\Crypto; use SimpleSAML\XML\Chunk;