From 420ce77729d967872416f10f2ae679d252cbb90e Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 28 Jul 2024 10:50:06 +0200 Subject: [PATCH] Fix cachekey issue This should fix #470 by making sure all columns are strings before imploding them. Signed-off-by: James Cole --- src/CacheKey.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CacheKey.php b/src/CacheKey.php index 057582f..eea4e29 100644 --- a/src/CacheKey.php +++ b/src/CacheKey.php @@ -263,6 +263,10 @@ protected function getQueryColumns(array $columns) : string return "_" . implode("_", $columns); } + $columns = array_map(function ($column) { + return $this->expressionToString($column); + }, $columns); + return "_" . implode("_", $columns); }