From 8d30626ad2fb7c5f185fbed73a0e7c77ea4b15fd Mon Sep 17 00:00:00 2001 From: Pierre Gauthier Date: Fri, 12 Apr 2024 14:02:53 +0200 Subject: [PATCH] Fix php7.4 compatibility for category query cache --- src/module-elasticsuite-virtual-category/Model/Rule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module-elasticsuite-virtual-category/Model/Rule.php b/src/module-elasticsuite-virtual-category/Model/Rule.php index 71f31935d..686a3d750 100644 --- a/src/module-elasticsuite-virtual-category/Model/Rule.php +++ b/src/module-elasticsuite-virtual-category/Model/Rule.php @@ -527,7 +527,7 @@ private function getTreeRootCategoryId($category): int * @param int $categoryId In of the category. * @return QueryInterface|bool|null */ - private function getFromLocalCache(int $categoryId): mixed + private function getFromLocalCache(int $categoryId) { return self::$localCache[$categoryId] ?? false; } @@ -538,7 +538,7 @@ private function getFromLocalCache(int $categoryId): mixed * @param int $categoryId Id of the category. * @param QueryInterface|bool|null $query Query of the category. */ - private function saveInLocalCache(int $categoryId, mixed $query): void + private function saveInLocalCache(int $categoryId, $query): void { if ($query !== null) { self::$localCache[$categoryId] = $query;