christoph-schaeffer / dhl-business-shipping

An unofficial library for the DHL business shipping soap API (Version 3.3) and the dhl shipment tracking rest API written in PHP.
MIT License
29 stars 8 forks source link

Warning: count(): Parameter must be an array or an object #2

Closed Flaschenzug closed 3 years ago

Flaschenzug commented 3 years ago

I have a problem and can't find a solution. Maybe you have an idea.

I set up your Script, that works fine.

But while trying to use getVersion()

$request = new \ChristophSchaeffer\Dhl\BusinessShipping\Request\getVersion();
$response = $client->getVersion($request);

I get the following error:

Warning: count(): Parameter must be an array or an object that implements Countable in /src/Response/AbstractResponse.php on line 79
An error occured!\n
christoph-schaeffer commented 3 years ago

Hey there,

there seems to be a bug when there's no status. Fortunally in MK-42's Pull Request there is already a fix fro that. I'll accept it soon.

christoph-schaeffer commented 3 years ago

The Pull Request has been merged. Could you tell me if your issue still exists?

christoph-schaeffer commented 3 years ago

Closing the issue, since it seems to be resolved.