Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix php7.4 compatibility for category query cache #3248

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/module-elasticsuite-virtual-category/Model/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
Expand Down
Loading