Skip to content

Commit

Permalink
Fix cachekey issue
Browse files Browse the repository at this point in the history
This should fix mikebronner#470 by making sure all columns are strings before imploding them.

Signed-off-by: James Cole <[email protected]>
  • Loading branch information
JC5 authored Jul 28, 2024
1 parent a38c905 commit 420ce77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CacheKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 420ce77

Please sign in to comment.