From 5194901a2fbb357274c6b3cd6f67794a36ae1855 Mon Sep 17 00:00:00 2001 From: Dorian Villet Date: Fri, 10 Jan 2025 15:46:18 +0100 Subject: [PATCH] Fix PHP 8.4 deprecation --- src/Session.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Session.php b/src/Session.php index e81d73bcf..e8cbd6cd2 100644 --- a/src/Session.php +++ b/src/Session.php @@ -28,10 +28,10 @@ class Session /** * Initializes session. * - * @param DriverInterface $driver - * @param SelectorsHandler $selectorsHandler + * @param DriverInterface $driver + * @param SelectorsHandler|null $selectorsHandler */ - public function __construct(DriverInterface $driver, SelectorsHandler $selectorsHandler = null) + public function __construct(DriverInterface $driver, ?SelectorsHandler $selectorsHandler = null) { $driver->setSession($this);