diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b1d4647..b4c5777a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## Unreleased - [Deprecated] This package is deprecated in favor of [`shopify/shopify-app-php`](https://packagist.org/packages/shopify/shopify-app-php), which supports the latest Shopify platform features. It is now marked abandoned via the Composer `abandoned` flag. It will keep working for existing users, but no new features or security fixes are planned. See the [shopify-app-php README](https://github.com/Shopify/shopify-app-php#readme) to upgrade. +- [#465](https://github.com/Shopify/shopify-api-php/pull/465) [Patch] Cast `Content-Length` header value to `string` in `Http::request()` to avoid a `guzzlehttp/psr7` 2.11 deprecation (`Passing int to MessageInterface::withHeader() is deprecated`) and stay compatible with `guzzlehttp/psr7` 3.0 ## v6.1.1 - 2026-03-02 - [#456](https://github.com/Shopify/shopify-api-php/pull/456) [Patch] Update firebase/php-jwt to ^7.0 to address security vulnerability (GHSA-2x45-7fc3-mxwq) diff --git a/src/Clients/Http.php b/src/Clients/Http.php index 4f03ab61..292661f1 100644 --- a/src/Clients/Http.php +++ b/src/Clients/Http.php @@ -207,7 +207,7 @@ protected function request( $request = $request ->withBody($stream) ->withHeader(HttpHeaders::CONTENT_TYPE, $dataType) - ->withHeader(HttpHeaders::CONTENT_LENGTH, mb_strlen($bodyString)); + ->withHeader(HttpHeaders::CONTENT_LENGTH, (string) mb_strlen($bodyString)); } $currentTries = 0;