From a32e28712865d9960800cc36e035fdd068d93650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0pa=C4=8Dek?= Date: Sun, 22 Nov 2026 23:18:37 +0100 Subject: [PATCH 1/2] Run tests on PHP 8.6 too --- .github/workflows/php.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 8e625b6..01b795d 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -16,6 +16,7 @@ jobs: - "8.3" - "8.4" - "8.5" + - "8.6" update-options: - "" - "--prefer-lowest" From b67b51c7613d3ba33093c6be3644012036a3bbe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0pa=C4=8Dek?= Date: Mon, 23 Nov 2026 02:44:15 +0100 Subject: [PATCH 2/2] Add TestSessionHandler::validateId(), it will be required in PHP 9.0, now only a warning --- tests/TestSessionHandler.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/TestSessionHandler.php b/tests/TestSessionHandler.php index ad77d87..3157d3f 100644 --- a/tests/TestSessionHandler.php +++ b/tests/TestSessionHandler.php @@ -5,9 +5,8 @@ use ReturnTypeWillChange; use SessionHandlerInterface; -use SessionIdInterface; -class TestSessionHandler implements SessionHandlerInterface, SessionIdInterface +class TestSessionHandler implements SessionHandlerInterface { private string $sessionId; @@ -28,6 +27,12 @@ public function create_sid(): string } + public function validateId(string $id): bool + { + return $id === $this->sessionId; + } + + /** * @param string $path * @param string $name