From 56613ed607157dbe801bcd257bf91f644fbe4d6b Mon Sep 17 00:00:00 2001 From: Reinder Reinders Date: Thu, 11 Dec 2025 16:27:16 +0100 Subject: [PATCH] Deprecate 8.0 and tests for PHP 8.3, 8.4 & 8.5 --- .github/workflows/test.yml | 4 +++- composer.json | 4 ++-- phpstan.neon.dist | 1 - src/BinaryFlags.php | 2 ++ 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a74131b..6ea45b0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,9 +12,11 @@ jobs: strategy: matrix: php-versions: + - 8.5 + - 8.4 + - 8.3 - 8.2 - 8.1 - - 8.0 name: PHP ${{ matrix.php-versions }} steps: diff --git a/composer.json b/composer.json index 1670246..cc6b7ae 100644 --- a/composer.json +++ b/composer.json @@ -28,11 +28,11 @@ }, "config": { "platform": { - "php": "8.0" + "php": "8.1" } }, "require": { - "php": "^8.0", + "php": "^8.1", "ext-json": "*" }, "require-dev": { diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 1c52932..1ff9017 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,6 +1,5 @@ parameters: level: max - checkGenericClassInNonGenericObjectType: false paths: - src ignoreErrors: diff --git a/src/BinaryFlags.php b/src/BinaryFlags.php index c937d79..cf03eee 100644 --- a/src/BinaryFlags.php +++ b/src/BinaryFlags.php @@ -11,6 +11,8 @@ * This class holds useful methods for checking, adding or removing binary flags * * @author Reinder + * + * @implements Iterator */ abstract class BinaryFlags implements Iterator, Countable, JsonSerializable {