From ca75fefa3dc198526204c33a5f9bb9c7e88e8fe9 Mon Sep 17 00:00:00 2001 From: Taylor Vance <33555535+taylorvance@users.noreply.github.com> Date: Wed, 18 Dec 2024 08:18:32 -0600 Subject: [PATCH] Use explicit nullable type for PHP 8.4 Deprecated : Stash\Utilities::getBaseDirectory(): Implicitly marking parameter $driver as nullable is deprecated, the explicit nullable type must be used instead --- src/Stash/Utilities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Stash/Utilities.php b/src/Stash/Utilities.php index dc8ed961..c868bff0 100644 --- a/src/Stash/Utilities.php +++ b/src/Stash/Utilities.php @@ -100,7 +100,7 @@ public static function decode($data, $method) * @param DriverInterface $driver * @return string Path for Stash files */ - public static function getBaseDirectory(DriverInterface $driver = null) + public static function getBaseDirectory(?DriverInterface $driver = null) { $tmp = rtrim(sys_get_temp_dir(), '/\\') . '/';