JeremyDunn / php-fedex-api-wrapper

This library provides a fluid interface for constructing requests to the FedEx web service API.
269 stars 184 forks source link

Error in deleting pending shipment #95

Closed ccnkemdilim closed 5 years ago

ccnkemdilim commented 5 years ago

Hi I keep getting this error when running delete-pending-shipment example

PHP Fatal error:  Uncaught TypeError: Argument 1 passed to FedEx\AbstractComplexType::populateFromStdClass() must be an instance of stdClass, null given, called in /php-fedex-api-wrapper/src/FedEx/ShipService/Request.php on line 92 and defined in /php-fedex-api-wrapper/src/FedEx/AbstractComplexType.php:139
Stack trace:
#0 /var/www/php-fedex-api-wrapper/src/FedEx/ShipService/Request.php(92): FedEx\AbstractComplexType->populateFromStdClass(NULL)
#1 /var/www/php-fedex-api-wrapper/examples/delete-pending-shipment.php(46): FedEx\ShipService\Request->getDeleteShipmentReply(Object(FedEx\ShipService\ComplexType\DeleteShipmentRequest))
#2 {main}
  thrown in /php-fedex-api-wrapper/src/FedEx/AbstractComplexType.php on line 139 

Thanks

Vishnu-Selva-Kumar commented 3 years ago

same error display in my project how to solve this