From e9c5b854116f3a4ecaa9e2008d5a9515b2e95010 Mon Sep 17 00:00:00 2001 From: Toshiyuki FUJITA Date: Thu, 30 Jul 2026 18:58:27 +0900 Subject: [PATCH] Updated the supported PHP version to 8.4. --- .github/workflows/continuous-integration.yml | 4 +--- .php-cs-fixer.dist.php | 1 + composer.json | 8 ++++---- tests/MemoizationTest.php | 4 ++-- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 1551eba..cd592d8 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -17,9 +17,7 @@ jobs: operating-system: - ubuntu-latest php-version: - - '8.0' - - '8.1' - - '8.2' + - '8.4' steps: - name: Checkout uses: actions/checkout@v1 diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index b720e38..30c0be5 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -12,6 +12,7 @@ 'phpdoc_summary' => false, 'yoda_style' => false, 'global_namespace_import' => true, + 'new_with_parentheses' => false, ]) ->setFinder($finder) ->setUsingCache(false) diff --git a/composer.json b/composer.json index 4872278..4911023 100644 --- a/composer.json +++ b/composer.json @@ -39,11 +39,11 @@ ] }, "require": { - "php": "^8.0" + "php": "^8.4" }, "require-dev": { - "phpunit/phpunit": "^9.6", - "phpstan/phpstan": "^1.0", - "friendsofphp/php-cs-fixer": "^3.0" + "phpunit/phpunit": "^13.2", + "phpstan/phpstan": "^2.2", + "friendsofphp/php-cs-fixer": "^3.95" } } diff --git a/tests/MemoizationTest.php b/tests/MemoizationTest.php index c81e630..84942cf 100644 --- a/tests/MemoizationTest.php +++ b/tests/MemoizationTest.php @@ -2,6 +2,7 @@ namespace Kalibora\Memoization; +use PHPUnit\Framework\Attributes\Depends; use PHPUnit\Framework\TestCase; /** @@ -31,12 +32,11 @@ public function testInnerProcessIsCalledOnlyOnceWhenMultipleCalls(): array } /** - * @depends testInnerProcessIsCalledOnlyOnceWhenMultipleCalls - * * @phpstan-param DependsData $data * * @phpstan-return DependsData */ + #[Depends('testInnerProcessIsCalledOnlyOnceWhenMultipleCalls')] public function testInnerProcessIsCalledOnlyOnceAgainAfterCleared(array $data): array { list($memo, $count, $func) = $data;