From 7e4d28c64854e6c88d0303c8c849c8483cb8727f Mon Sep 17 00:00:00 2001 From: slawkens Date: Wed, 14 May 2025 13:23:34 +0200 Subject: [PATCH] Fix more php 8.4 warnings --- system/libs/pot/OTS.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/libs/pot/OTS.php b/system/libs/pot/OTS.php index 9c988210..a7327401 100644 --- a/system/libs/pot/OTS.php +++ b/system/libs/pot/OTS.php @@ -1115,7 +1115,7 @@ class POT * * @param IOTS_FileCache $cache Cache handler (skip this parameter to reset cache handler to null). */ - public function setItemsCache(IOTS_FileCache $cache = null) + public function setItemsCache(?IOTS_FileCache $cache = null) { $this->itemsCache = $cache; } @@ -1253,7 +1253,7 @@ class POT * * @param IOTS_FileCache $cache Cache handler (skip this parameter to reset cache handler to null). */ - public function setMapCache(IOTS_FileCache $cache = null) + public function setMapCache(?IOTS_FileCache $cache = null) { $this->mapCache = $cache; }