Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v8.8.2 (2026-08-11)

- Empty arrays and objects are no longer stripped when passed as params in the request

## v8.8.1 (2026-07-02)

- Uppercases all HTTP methods to correct a new Guzzle deprecation
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "easypost/easypost-php",
"description": "EasyPost Shipping API Client Library for PHP",
"version": "8.8.1",
"version": "8.8.2",
"keywords": [
"shipping",
"api",
Expand Down
2 changes: 1 addition & 1 deletion lib/EasyPost/Constant/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ abstract class Constants
const BETA_API_VERSION = 'beta';

// Library constants
const LIBRARY_VERSION = '8.8.1';
const LIBRARY_VERSION = '8.8.2';
const SUPPORT_EMAIL = 'support@easypost.com';

// Validation
Expand Down
2 changes: 1 addition & 1 deletion lib/EasyPost/Http/Requestor.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private static function encodeObjects(mixed $data): array|string
} elseif (is_array($data)) {
$resource = [];
foreach ($data as $k => $v) {
if (!is_null($v) and ($v !== '') and (!is_array($v) or !empty($v))) {
if (!is_null($v) and ($v !== '')) {
$resource[$k] = self::encodeObjects($v);
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/EasyPost/ShipmentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public function testCreateEmptyObjects(): void
$this->assertInstanceOf(Shipment::class, $shipment);
$this->assertStringMatchesFormat('shp_%s', $shipment->id);
$this->assertNotEmpty($shipment->options); // The EasyPost API populates some default values here
$this->assertEmpty($shipment->customs_info);
$this->assertEmpty($shipment->customs_info->customs_items);
$this->assertNull($shipment->reference);
}

Expand Down
Loading
Loading