Skip to content

Commit 87c76b2

Browse files
authored
Merge pull request #252 from EasyPost/small_changes
fix: typo in example and add TODO
2 parents 068ac81 + ae844e8 commit 87c76b2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ A simple create & buy shipment example:
3030
```php
3131
require_once("/path/to/vendor/easypost/autoload.php");
3232

33-
$client = new EasyPostClient(getenv('EASYPOST_API_KEY'));
33+
$client = new \EasyPost\EasyPostClient(getenv('EASYPOST_API_KEY'));
3434

3535
$shipment = $client->shipmemt->create([
3636
"from_address" => [

lib/EasyPost/Service/ReferralCustomerService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ public function create($params = null)
5555
*/
5656
public function updateEmail($email, $userId)
5757
{
58+
// TODO: Swap the order of these params so ID comes first to match all other functions
59+
// this will be a breaking change and must be done when the next major release happens
5860
$wrappedParams = [
5961
'user' => [
6062
'email' => $email

0 commit comments

Comments
 (0)