From f41556e12f954f421f41d3022267e4db5f0f42cc Mon Sep 17 00:00:00 2001 From: Zaahid Bateson Date: Mon, 18 Mar 2024 14:08:18 -0700 Subject: [PATCH] Update dependencies for 2.0 --- .github/workflows/tests.yml | 2 +- README.md | 12 +++++++++++- composer.json | 6 +++--- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7c2aa97..67e1280 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,7 +9,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - php: [8.2, 8.1, 8.0, 7.4, 7.3, 7.2] + php: [8.3, 8.2, 8.1, 8.0] stability: [prefer-stable] name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/README.md b/README.md index a2eced9..3c8e1db 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,19 @@ To include it for use in your project, please install via composer: composer require zbateson/stream-decorators ``` +## Php 7 Support Dropped + +As of stream-decorators 2.0, support for php 7 has been dropped. + ## Requirements -StreamDecorators requires PHP 7.2 or newer. Tested on PHP 7.2, 7.3, 7.4, 8.0, 8.1 and 8.2. +stream-decorators requires PHP 8.0 or newer. Tested on 8.0, 8.1, 8.2 and 8.3. + +## New in 2.0 + +Support for guzzlehttp/psr7 1.9 dropped, min supported version is 2.0. + +zbateson/mb-wrapper has been updated to 2.0 as well, which throws an UnsupportedCharsetException converting from/to an unsupported charset, which changes the behaviour of CharsetStream. ## Usage diff --git a/composer.json b/composer.json index fda2155..2192d81 100644 --- a/composer.json +++ b/composer.json @@ -9,9 +9,9 @@ } ], "require": { - "php": ">=7.2", - "guzzlehttp/psr7": "^1.9 | ^2.0", - "zbateson/mb-wrapper": "^1.0.0" + "php": ">=8.0", + "guzzlehttp/psr7": "^2.0", + "zbateson/mb-wrapper": "^2.0" }, "require-dev": { "phpunit/phpunit": "<10.0",