Created
July 24, 2014 15:46
-
-
Save yummytech/0c6827c7266b8be1c9a1 to your computer and use it in GitHub Desktop.
Bug with EasyPost Resource.php file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ISSUE#95 - EasyPost Notice: Undefined property of EasyPost\Shipment instance: 1 | |
grundyoso commented 2 hours ago | |
Seems there's an issue with the EasyPost-PHP API helper. I'm trying to update a Address resource within a Shipment record like so: | |
$to_address = $shipment->__get('to_address'); // Get the to_address instance | |
$to_address->__set('email', $order->billing_email); | |
$shipment->__set('to_address',$to_address); | |
$shipment->save(); | |
but I get the error above. Seems to be rooted in the fact that $params submitted in this request is NULL: | |
list($response, $apiKey) = $requestor->request('post', $url, $params); | |
(in file lib/EasyPost/Resource.php line 109) | |
grundyoso commented 19 minutes ago | |
There was an EasyPost-PHP helper bug in file lib/EasyPost/Resource.php on line 105: | |
foreach ($this->_unsavedValues as $k) { | |
should have been: | |
foreach ($this->_unsavedValues as $k => $v) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment