From 5e2c06b6949e30ceb12a95e6d03e51ec460775f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rancoud?= Date: Sat, 30 May 2026 02:15:17 +0200 Subject: [PATCH 1/5] chore: add php 8.5 to tests --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f0cf1d1..bc61477 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,6 +26,7 @@ jobs: - ubuntu-latest php-version: - '8.4' + - '8.5' steps: - name: Checkout From d4d6696ac992f4d04bf9923ee9588f2c4034dc4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rancoud?= Date: Sat, 30 May 2026 21:32:08 +0200 Subject: [PATCH 2/5] update about deprecated --- tests/PaginationTest.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/PaginationTest.php b/tests/PaginationTest.php index 2813c38..f2b493e 100644 --- a/tests/PaginationTest.php +++ b/tests/PaginationTest.php @@ -936,37 +936,37 @@ public function testLocateItemInPage(int $countElementPerPage, int $itemIndex, i public static function provideExceptionDataCases(): iterable { yield 'aria_label_nav' => [ - 'conf' => ['aria_label_nav' => \chr(99999999)], + 'conf' => ['aria_label_nav' => "\xFF"], 'message' => 'could not escAttr "nav" aria label: String to convert is not valid for the specified charset' ]; yield 'text_previous' => [ - 'conf' => ['text_previous' => \chr(99999999), 'always_use_previous' => true], + 'conf' => ['text_previous' => "\xFF", 'always_use_previous' => true], 'message' => 'could not escHTML "previous" text: String to convert is not valid for the specified charset' ]; yield 'aria_label_previous' => [ - 'conf' => ['aria_label_previous' => \chr(99999999), 'always_use_previous' => true], + 'conf' => ['aria_label_previous' => "\xFF", 'always_use_previous' => true], 'message' => 'could not escAttr "previous" aria label or "previous" href: String to convert is not valid for the specified charset' ]; yield 'text_next' => [ - 'conf' => ['text_next' => \chr(99999999), 'always_use_next' => true], + 'conf' => ['text_next' => "\xFF", 'always_use_next' => true], 'message' => 'could not escHTML "next" text: String to convert is not valid for the specified charset' ]; yield 'aria_label_next' => [ - 'conf' => ['aria_label_next' => \chr(99999999), 'always_use_next' => true], + 'conf' => ['aria_label_next' => "\xFF", 'always_use_next' => true], 'message' => 'could not escAttr "next" aria label or "next" href: String to convert is not valid for the specified charset' ]; yield 'aria_label_link' => [ - 'conf' => ['aria_label_link' => \chr(99999999)], + 'conf' => ['aria_label_link' => "\xFF"], 'message' => 'could not escAttr "item" aria label or "item" href: String to convert is not valid for the specified charset' ]; yield 'text_page' => [ - 'conf' => ['text_page' => \chr(99999999)], + 'conf' => ['text_page' => "\xFF"], 'message' => 'could not escHTML "item" text: String to convert is not valid for the specified charset' ]; } From c49b66daa7ec75e581ef62108a07c50bbb51f91e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rancoud?= Date: Sat, 30 May 2026 21:59:45 +0200 Subject: [PATCH 3/5] updates --- .github/workflows/test.yml | 12 +++++++----- composer.json | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bc61477..c62d956 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,12 +8,13 @@ concurrency: cancel-in-progress: true on: - push: - paths-ignore: - - '**.md' pull_request: paths-ignore: - '**.md' + types: + - opened + - synchronize + - reopened jobs: test: @@ -56,12 +57,13 @@ jobs: run: composer install --prefer-dist --no-progress - name: Lint + if: matrix.php-version == '8.4' run: | - PHP_CS_FIXER_IGNORE_ENV=True vendor/bin/php-cs-fixer fix --diff --dry-run + vendor/bin/php-cs-fixer fix --diff --dry-run - name: PHPUnit run: | - vendor/bin/phpunit --colors --coverage-text --coverage-clover coverage/clover.xml + vendor/bin/phpunit --colors --display-deprecation --coverage-text --coverage-clover coverage/clover.xml - name: Upload coverage uses: codecov/codecov-action@v6 diff --git a/composer.json b/composer.json index ab5ebb5..661b448 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,7 @@ "php-cs-fixer fix -vvv" ], "test": [ - "phpunit --colors --coverage-html ./coverage" + "phpunit --colors --display-deprecation --coverage-html ./coverage" ] } } From 954a587844ef9251410edc93a930360f1f5584b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rancoud?= Date: Sat, 30 May 2026 23:27:13 +0200 Subject: [PATCH 4/5] use --display-all-issues --- .github/workflows/test.yml | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c62d956..d98749b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -63,7 +63,7 @@ jobs: - name: PHPUnit run: | - vendor/bin/phpunit --colors --display-deprecation --coverage-text --coverage-clover coverage/clover.xml + vendor/bin/phpunit --colors --display-all-issues --coverage-text --coverage-clover coverage/clover.xml - name: Upload coverage uses: codecov/codecov-action@v6 diff --git a/composer.json b/composer.json index 661b448..90191f0 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,7 @@ "php-cs-fixer fix -vvv" ], "test": [ - "phpunit --colors --display-deprecation --coverage-html ./coverage" + "phpunit --colors --display-all-issues --coverage-html ./coverage" ] } } From ed87abb8bcb42128886cd3a939c85f6e309ca464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rancoud?= Date: Sun, 31 May 2026 19:49:58 +0200 Subject: [PATCH 5/5] udpate dep --- composer.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index e94c6bc..b6c7fae 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "rancoud/security", - "version": "4.0.1", + "version": "4.0.2", "source": { "type": "git", "url": "https://github.com/rancoud/Security.git", - "reference": "2cf4068008957003c274c3d077ee7a2b24903e34" + "reference": "4fbc1ee787e1c1e52a5d9c5019e361934a3f4bed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rancoud/Security/zipball/2cf4068008957003c274c3d077ee7a2b24903e34", - "reference": "2cf4068008957003c274c3d077ee7a2b24903e34", + "url": "https://api.github.com/repos/rancoud/Security/zipball/4fbc1ee787e1c1e52a5d9c5019e361934a3f4bed", + "reference": "4fbc1ee787e1c1e52a5d9c5019e361934a3f4bed", "shasum": "" }, "require": { @@ -47,9 +47,9 @@ "description": "Security package", "support": { "issues": "https://github.com/rancoud/Security/issues", - "source": "https://github.com/rancoud/Security/tree/4.0.1" + "source": "https://github.com/rancoud/Security/tree/4.0.2" }, - "time": "2026-03-15T11:47:47+00:00" + "time": "2026-05-31T17:46:21+00:00" } ], "packages-dev": [