8000 [Cache] Minor cleanup · symfony/symfony@5786f3d · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 5786f3d

Browse files
[Cache] Minor cleanup
1 parent 84b48de commit 5786f3d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ public function commit()
323323
CacheItem::log($this->logger, 'Failed to save key "{key}" ({type})', array('key' => substr($id, strlen($this->namespace)), 'type' => $type, 'exception' => $e instanceof \Exception ? $e : null));
324324
}
325325
}
326-
$this->deferred = array();
327326

328327
return $ok;
329328
}

src/Symfony/Component/Cache/CacheItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public static function validateKey($key)
115115
throw new InvalidArgumentException('Cache key length must be greater than zero');
116116
}
117117
if (isset($key[strcspn($key, '{}()/\@:')])) {
118-
throw new InvalidArgumentException('Cache key contains reserved characters {}()/\@:');
118+
throw new InvalidArgumentException(sprintf('Cache key "%s" contains reserved characters {}()/\@:', $key));
119119
}
120120
}
121121 3962

0 commit comments

Comments
 (0)
0