Skip to content

Commit 6ce73b8

Browse files
committed
SQLiteJournal: ensure $tags is array
1 parent 460d6c2 commit 6ce73b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Caching/Storages/SQLiteJournal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function clean(array $conditions): ?array
108108

109109
$unions = $args = [];
110110
if (!empty($conditions[Cache::TAGS])) {
111-
$tags = $conditions[Cache::TAGS];
111+
$tags = (array) $conditions[Cache::TAGS];
112112
$unions[] = 'SELECT DISTINCT key FROM tags WHERE tag IN (?' . str_repeat(', ?', count($tags) - 1) . ')';
113113
$args = $tags;
114114
}

0 commit comments

Comments
 (0)