postnl-api-php icon indicating copy to clipboard operation
postnl-api-php copied to clipboard

Undefined property: stdClass::$Events

Open Swahjak opened this issue 7 months ago • 2 comments

It seems like "Events" can be undefined when requesting PostNL status. One hell of an API for a company this size.

07:52:40 ERROR     [carrier] Warning: Undefined property: stdClass::$Events
[
  "exception" => ErrorException {
    #message: "Warning: Undefined property: stdClass::$Events"
    #code: 0
    #file: "./vendor/firstred/postnl-api-php/src/Service/ResponseProcessor/Rest/ShippingStatusServiceRestResponseProcessor.php"
    #line: 142
    #severity: E_WARNING
    trace: {
      ./vendor/firstred/postnl-api-php/src/Service/ResponseProcessor/Rest/ShippingStatusServiceRestResponseProcessor.php:142 { …}
      ./vendor/firstred/postnl-api-php/src/Service/ShippingStatusService.php:273 { …}
      ./vendor/firstred/postnl-api-php/src/PostNL.php:1757 { …}

Swahjak avatar Jul 08 '24 07:07 Swahjak