Skip to content

Commit ce6e16c

Browse files
committed
Addressed feedback
1 parent a7494f6 commit ce6e16c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Cache/Adapter/PdoTagAwareAdapter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ protected function doSave(array $values, int $lifetime, array $addTagData = [],
198198
protected function doDeleteTagRelations(array $tagData): bool
199199
{
200200
foreach ($tagData as $tagId => $idList) {
201+
if ([] === $idList) {
202+
continue;
203+
}
204+
201205
$placeholders = implode(',', array_fill(0, \count($idList), '?'));
202206
$stmt = $this->prepareStatementWithFallback("DELETE FROM $this->tagsTable WHERE $this->tagCol=:tagId AND $this->idCol IN ($placeholders);", function () {
203207
$this->createTagsTable();

0 commit comments

Comments
 (0)