Skip to content

Commit 44b0772

Browse files
authored
Fix cachekey issue (#471)
This should fix #470 by making sure all columns are strings before imploding them. Signed-off-by: James Cole <[email protected]>
1 parent f209bc3 commit 44b0772

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CacheKey.php

+4
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ protected function getQueryColumns(array $columns) : string
263263
return "_" . implode("_", $columns);
264264
}
265265

266+
$columns = array_map(function ($column) {
267+
return $this->expressionToString($column);
268+
}, $columns);
269+
266270
return "_" . implode("_", $columns);
267271
}
268272

0 commit comments

Comments
 (0)