Skip to content

Commit 316238a

Browse files
committed
Fixed broken tests
1 parent 8c97c17 commit 316238a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

MemcachedCachePool.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ protected function storeItemInCache($key, CacheItemInterface $item, $ttl)
7171
{
7272
if ($ttl === null) {
7373
$ttl = 0;
74+
} elseif ($ttl < 0) {
75+
return false;
7476
}
7577

7678
$key = $this->getHierarchyKey($key);

0 commit comments

Comments
 (0)