Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

[PHP8] Namespace does not get set causing ValueError in SoapHeader class #87

Open
cyrus-discuss opened this issue Feb 12, 2021 · 1 comment

Comments

@cyrus-discuss
Copy link

Throws Error

$client = new SforceEnterpriseClient();
$client->setSessionHeader(...);
/*
  Throws following error:
  ValueError: SoapHeader::__construct(): Argument #1 ($namespace) cannot be empty in /vendor/developerforce/force.com-toolkit-for-php/soapclient/SforceBaseClient.php:377
*/

Word-around

$client = new SforceEnterpriseClient();
$client->SforceEnterpriseClient();
$client->setSessionHeader(...);
@cyrus-discuss cyrus-discuss changed the title PHP8 Namespace does not get set causing ValueError in SoapHeader class [PHP8] Namespace does not get set causing ValueError in SoapHeader class Feb 12, 2021
@z4phodB
Copy link

z4phodB commented Jul 16, 2022

Works for SforcePartnerClient() as well. Thanks!

$client = new SforcePartnerClient();
$client->SforcePartnerClient();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants