Skip to content

Exception when calling fetchOrder with insurance configured #34

@svenbw

Description

@svenbw

When the fetchOrder is called on an order with insurance the createFromXML in Bpost\BpostApiClient\Bpost\Order\Box\Option\Insured failes.

It can be resolved using getting the children with the full namespace:

// $insuranceDetail = $xml->children('common', true); <-- fails
$insuranceDetail = $xml->children('http://schema.post.be/shm/deepintegration/v3/common');

Environment: PHP 8.2.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions