8000 minor #18647 [Cache] Minor cleanup (nicolas-grekas) · symfony/symfony@e0696fa · GitHub
[go: up one dir, main page]

Skip to content

Commit e0696fa

Browse files
minor #18647 [Cache] Minor cleanup (nicolas-grekas)
This PR was merged into the 3.1-dev branch. Discussion ---------- [Cache] Minor cleanup | Q | A | ------------- | --- | Branch? | 3.1 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 5786f3d [Cache] Minor cleanup
2 parents caffb9b + 5786f3d commit e0696fa

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

0 commit comments

Comments
 (0)
0