From 1ed7d9954484cb419ce04d8ef97a5731822def25 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 18 Jul 2025 14:11:56 +0000 Subject: [PATCH 1/4] [actions] Bump actions/cache from 3 to 4 in the all-actions group Bumps the all-actions group with 1 update: [actions/cache](https://github.com/actions/cache). Updates `actions/cache` from 3 to 4 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major dependency-group: all-actions ... Signed-off-by: dependabot[bot] --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index db75df3..941960f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -34,7 +34,7 @@ jobs: run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: "Cache composer" - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.lock') }} From 8f5013e74c5752000d434b7342729d1fa53394b1 Mon Sep 17 00:00:00 2001 From: Antoine Froger Date: Fri, 18 Jul 2025 16:14:52 +0200 Subject: [PATCH 2/4] Remove unsupported versions and add new ones --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 941960f..8a61fcc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,7 +13,7 @@ jobs: strategy: matrix: operating-system: ['ubuntu-latest', 'windows-latest', 'macos-latest'] - php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3'] + php-versions: ['8.1', '8.2', '8.3', '8.4'] steps: - name: Checkout From 32d6693e626d4dec9f7078a8c60bcda1a777b050 Mon Sep 17 00:00:00 2001 From: Antoine Froger Date: Fri, 18 Jul 2025 16:17:27 +0200 Subject: [PATCH 3/4] FIx linter complaints --- tests/ContextTest.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/ContextTest.php b/tests/ContextTest.php index 73d7397..c752e7a 100644 --- a/tests/ContextTest.php +++ b/tests/ContextTest.php @@ -18,23 +18,23 @@ public function testAddParams(string $name, $value): void $this->assertSame($value, $context->get($name)); } - public function testParamNotFoundMustThrowAnException(): void - { - $this->expectException(InvalidArgumentException::class); - - $context = new Context(['feature2' => 'nice']); - $context->get('feature1'); - } - public function valueProvider(): array { return [ ['string', 'a context value'], ['array', [1, 2, 3]], - ['associative array', ['name' => 'Chandler', 'roomate' => 'Joey', 'friend' => 'Ross']], + ['associative array', ['name' => 'Chandler', 'roommate' => 'Joey', 'friend' => 'Ross']], ['object', new stdClass()], ['bool', false], ['null', null], ]; } + + public function testParamNotFoundMustThrowAnException(): void + { + $this->expectException(InvalidArgumentException::class); + + $context = new Context(['feature2' => 'nice']); + $context->get('feature1'); + } } From 4ad6b10b78c346b14aed1381c152bc487ac96f92 Mon Sep 17 00:00:00 2001 From: Antoine Froger Date: Fri, 18 Jul 2025 16:26:05 +0200 Subject: [PATCH 4/4] Fix cache key (typo) --- .github/workflows/ci.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8a61fcc..6df044f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -32,14 +32,15 @@ jobs: - name: Get composer cache directory id: composer-cache run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + shell: bash - name: "Cache composer" uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.lock') }} + key: ${{ runner.os }}-${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: | - ${{ runner.os }}-${{ matrix.php-version }}-composer- + ${{ runner.os }}-${{ matrix.php-versions }}-composer- - name: Setup problem matchers for PHPUnit run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"