From 052ab20d6751584b42da6976c8328288c6080579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Bechyn=C4=9B?= Date: Fri, 11 Nov 2016 16:04:44 +0100 Subject: [PATCH] tiny bugfixes --- src/BeSimple/SoapClient/SoapClient.php | 2 +- src/BeSimple/SoapCommon/SoapOptions/SoapOptions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BeSimple/SoapClient/SoapClient.php b/src/BeSimple/SoapClient/SoapClient.php index c89eb25..483c8e7 100644 --- a/src/BeSimple/SoapClient/SoapClient.php +++ b/src/BeSimple/SoapClient/SoapClient.php @@ -153,7 +153,7 @@ class SoapClient extends \SoapClient // HTTP headers $soapVersion = $soapRequest->getVersion(); $soapAction = $soapRequest->getAction(); - if (SOAP_1_1 == $soapVersion) { + if (SOAP_1_1 === $soapVersion) { $headers = [ 'Content-Type:' . $soapRequest->getContentType(), 'SOAPAction: "' . $soapAction . '"', diff --git a/src/BeSimple/SoapCommon/SoapOptions/SoapOptions.php b/src/BeSimple/SoapCommon/SoapOptions/SoapOptions.php index f878b96..5b697b2 100644 --- a/src/BeSimple/SoapCommon/SoapOptions/SoapOptions.php +++ b/src/BeSimple/SoapCommon/SoapOptions/SoapOptions.php @@ -130,7 +130,7 @@ class SoapOptions $optionsAsArray = [ 'soap_version' => $this->getSoapVersion(), 'encoding' => $this->getEncoding(), - 'features' => $this->getSoapFeatures(), + 'features' => $this->getSoapFeatures()->getFeaturesSum(), 'wsdl' => $this->getWsdlFile(), 'cache_wsdl' => $this->getWsdlCacheType(), 'classmap' => $this->getClassMap()->getAll(),