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" 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