Skip to content

Commit 651e5cd

Browse files
committed
Fixed #548
1 parent 2c80fa5 commit 651e5cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/phpFastCache/Drivers/Predis/Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ protected function driverDelete(CacheItemInterface $item): bool
116116
* Check for Cross-Driver type confusion
117117
*/
118118
if ($item instanceof Item) {
119-
return (bool)$this->instance->del([$item->getKey()]);
119+
return (bool) $this->instance->del([$item->getKey()]);
120120
} else {
121121
throw new phpFastCacheInvalidArgumentException('Cross-Driver type confusion detected');
122122
}

src/phpFastCache/Drivers/Redis/Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ protected function driverDelete(CacheItemInterface $item): bool
120120
* Check for Cross-Driver type confusion
121121
*/
122122
if ($item instanceof Item) {
123-
return $this->instance->del($item->getKey());
123+
return (bool) $this->instance->del($item->getKey());
124124
} else {
125125
throw new phpFastCacheInvalidArgumentException('Cross-Driver type confusion detected');
126126
}

0 commit comments

Comments
 (0)