From d6f105c098eaab001ad1d11522d3dccbe225b6ba Mon Sep 17 00:00:00 2001 From: Marijn Koesen Date: Fri, 11 Mar 2016 09:41:58 +0100 Subject: [PATCH] Replaced the deprecated constructor with __construct() --- soapclient/SforceEnterpriseClient.php | 2 +- soapclient/SforcePartnerClient.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/soapclient/SforceEnterpriseClient.php b/soapclient/SforceEnterpriseClient.php index acc5702..b018efc 100644 --- a/soapclient/SforceEnterpriseClient.php +++ b/soapclient/SforceEnterpriseClient.php @@ -36,7 +36,7 @@ */ class SforceEnterpriseClient extends SforceBaseClient { const ENTERPRISE_NAMESPACE = 'urn:enterprise.soap.sforce.com'; - function SforceEnterpriseClient() { + public function __construct() { $this->namespace = self::ENTERPRISE_NAMESPACE; } /** diff --git a/soapclient/SforcePartnerClient.php b/soapclient/SforcePartnerClient.php index 66bb75a..38c30e8 100644 --- a/soapclient/SforcePartnerClient.php +++ b/soapclient/SforcePartnerClient.php @@ -74,7 +74,7 @@ function __doRequest($request, $location, $action, $version, $one_way=0) { class SforcePartnerClient extends SforceBaseClient { const PARTNER_NAMESPACE = 'urn:partner.soap.sforce.com'; - function SforcePartnerClient() { + public function __construct() { $this->namespace = self::PARTNER_NAMESPACE; } @@ -223,4 +223,4 @@ private function _retrieveResult($response) { return $arr; } -} \ No newline at end of file +}