From 1c2d58e56f4bed3481671aac026c232831678685 Mon Sep 17 00:00:00 2001 From: Jakub Gause Date: Tue, 1 Sep 2026 08:15:06 +0200 Subject: [PATCH] chore: use guzzle 8 --- .github/workflows/ci.yml | 6 +++++- CHANGELOG.md | 5 +++++ composer.json | 2 +- src/Lettr.php | 2 +- tests/Unit/LettrTest.php | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb305fc..c1c7c59 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,8 +13,9 @@ jobs: strategy: matrix: php: ['8.4'] + guzzle: ['^7.5', '^8.0'] - name: PHP ${{ matrix.php }} + name: PHP ${{ matrix.php }} / Guzzle ${{ matrix.guzzle }} steps: - name: Checkout code @@ -30,6 +31,9 @@ jobs: - name: Install dependencies run: composer install --prefer-dist --no-interaction --no-progress + - name: Pin Guzzle ${{ matrix.guzzle }} + run: composer update "guzzlehttp/guzzle:${{ matrix.guzzle }}" --with-all-dependencies --no-interaction --no-progress + - name: Run Pint (code style) run: composer lint -- --test diff --git a/CHANGELOG.md b/CHANGELOG.md index 038e60c..b2d0b34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/). +## [2.5.2] - 2026-09-01 + +### Changed +- Allow `guzzlehttp/guzzle` `^8.0` alongside `^7.5`. Fresh Laravel 13 installs now lock Guzzle 8, which made `composer require lettr/lettr-php` (and `lettr/lettr-laravel`) unresolvable without `-W`. No code changes were needed — the client only uses `Client::request()` with `headers`/`json`/`query` options, which are unchanged in Guzzle 8. The test suite and a live API smoke test pass on both Guzzle 7.15 and 8.1. + ## [2.5.1] - 2026-08-15 ### Fixed diff --git a/composer.json b/composer.json index 414cbc3..23d4878 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ ], "require": { "php": "^8.4", - "guzzlehttp/guzzle": "^7.5" + "guzzlehttp/guzzle": "^7.5 || ^8.0" }, "require-dev": { "laravel/pint": "^1.18", diff --git a/src/Lettr.php b/src/Lettr.php index 4569036..8ad103e 100644 --- a/src/Lettr.php +++ b/src/Lettr.php @@ -36,7 +36,7 @@ final class Lettr * single source of truth for the version and will be removed in * a future major release. */ - public const VERSION = '2.5.1'; + public const VERSION = '2.5.2'; /** * The API base URL. diff --git a/tests/Unit/LettrTest.php b/tests/Unit/LettrTest.php index c69fbcf..8366652 100644 --- a/tests/Unit/LettrTest.php +++ b/tests/Unit/LettrTest.php @@ -171,7 +171,7 @@ })->throws(InvalidArgumentException::class, 'Unknown service: unknownService'); test('has correct version constant', function (): void { - expect(Lettr::VERSION)->toBe('2.5.1'); + expect(Lettr::VERSION)->toBe('2.5.2'); }); test('has correct base url constant', function (): void {