Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.
This repository was 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

@cyrus-discuss

Description

@cyrus-discuss

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(...);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions