Fix more php 8.4 warnings

This commit is contained in:
slawkens 2025-05-14 13:23:34 +02:00
parent 3b2669fb3b
commit 7e4d28c648

View File

@ -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;
}