tiny bugfixes

This commit is contained in:
Petr Bechyně 2016-11-11 16:04:44 +01:00
parent dd7b6904b6
commit 052ab20d67
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ class SoapClient extends \SoapClient
// HTTP headers // HTTP headers
$soapVersion = $soapRequest->getVersion(); $soapVersion = $soapRequest->getVersion();
$soapAction = $soapRequest->getAction(); $soapAction = $soapRequest->getAction();
if (SOAP_1_1 == $soapVersion) { if (SOAP_1_1 === $soapVersion) {
$headers = [ $headers = [
'Content-Type:' . $soapRequest->getContentType(), 'Content-Type:' . $soapRequest->getContentType(),
'SOAPAction: "' . $soapAction . '"', 'SOAPAction: "' . $soapAction . '"',

View File

@ -130,7 +130,7 @@ class SoapOptions
$optionsAsArray = [ $optionsAsArray = [
'soap_version' => $this->getSoapVersion(), 'soap_version' => $this->getSoapVersion(),
'encoding' => $this->getEncoding(), 'encoding' => $this->getEncoding(),
'features' => $this->getSoapFeatures(), 'features' => $this->getSoapFeatures()->getFeaturesSum(),
'wsdl' => $this->getWsdlFile(), 'wsdl' => $this->getWsdlFile(),
'cache_wsdl' => $this->getWsdlCacheType(), 'cache_wsdl' => $this->getWsdlCacheType(),
'classmap' => $this->getClassMap()->getAll(), 'classmap' => $this->getClassMap()->getAll(),