From 52fe0a5d14d01a556b4bc6bebbe91bb696e4f15b Mon Sep 17 00:00:00 2001 From: Romain Canon Date: Thu, 21 Nov 2024 22:40:55 +0100 Subject: [PATCH] feat: add support for PHP 8.4 --- .github/workflows/tests.yml | 1 + composer.json | 2 +- composer.lock | 28 ++++++++++++++-------------- tests/App/src/Cache/CacheSpy.php | 1 - 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c211d07..a43aa46 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,6 +15,7 @@ jobs: - "8.1" - "8.2" - "8.3" + - "8.4" steps: - name: Checkout diff --git a/composer.json b/composer.json index f697f66..9268143 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "php": "~8.1.0 || ~8.2.0 || ~8.3.0", + "php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0", "cuyz/valinor": "^1.0", "symfony/config": "^5.4 || ^6.4 || ^7.0", "symfony/dependency-injection": "^5.4 || ^6.4 || ^7.0", diff --git a/composer.lock b/composer.lock index 8a4f950..7993fe1 100644 --- a/composer.lock +++ b/composer.lock @@ -4,37 +4,37 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "15b94eaee5112fdbf6a25de7fecf9493", + "content-hash": "dae4b565994c9b1a1d5b1605dfb3896f", "packages": [ { "name": "cuyz/valinor", - "version": "1.6.0", + "version": "1.14.1", "source": { "type": "git", "url": "https://github.com/CuyZ/Valinor.git", - "reference": "f3f3429d90be77f59903923f9bb5ce93c484dfd7" + "reference": "12033fccdcc6afa7e73b3e234e4d6656530f2bcb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/CuyZ/Valinor/zipball/f3f3429d90be77f59903923f9bb5ce93c484dfd7", - "reference": "f3f3429d90be77f59903923f9bb5ce93c484dfd7", + "url": "https://api.github.com/repos/CuyZ/Valinor/zipball/12033fccdcc6afa7e73b3e234e4d6656530f2bcb", + "reference": "12033fccdcc6afa7e73b3e234e4d6656530f2bcb", "shasum": "" }, "require": { "composer-runtime-api": "^2.0", - "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0", + "php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0", "psr/simple-cache": "^1.0 || ^2.0 || ^3.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.4", - "infection/infection": "^0.26", + "infection/infection": "^0.27", "marcocesarato/php-conventional-changelog": "^1.12", "mikey179/vfsstream": "^1.6.10", "phpstan/phpstan": "^1.3", "phpstan/phpstan-phpunit": "^1.0", "phpstan/phpstan-strict-rules": "^1.0", - "phpunit/phpunit": "^9.5", - "rector/rector": "~0.17.0", + "phpunit/phpunit": "^10.5", + "rector/rector": "^1.0", "vimeo/psalm": "^5.0" }, "type": "library", @@ -69,7 +69,7 @@ ], "support": { "issues": "https://github.com/CuyZ/Valinor/issues", - "source": "https://github.com/CuyZ/Valinor/tree/1.6.0" + "source": "https://github.com/CuyZ/Valinor/tree/1.14.1" }, "funding": [ { @@ -77,7 +77,7 @@ "type": "github" } ], - "time": "2023-08-25T10:26:38+00:00" + "time": "2024-11-06T07:46:46+00:00" }, { "name": "psr/container", @@ -6083,12 +6083,12 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "~8.1.0 || ~8.2.0 || ~8.3.0" + "php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0" }, - "platform-dev": [], + "platform-dev": {}, "plugin-api-version": "2.6.0" } diff --git a/tests/App/src/Cache/CacheSpy.php b/tests/App/src/Cache/CacheSpy.php index 067ff8d..836d3e5 100644 --- a/tests/App/src/Cache/CacheSpy.php +++ b/tests/App/src/Cache/CacheSpy.php @@ -36,7 +36,6 @@ static function (mixed $value) use ($className): bool { return $value->name() === $className; } - // @phpstan-ignore-next-line return $value->name === $className; } );