diff --git a/cache.rst b/cache.rst index 2050b32dca4..52d615d541d 100644 --- a/cache.rst +++ b/cache.rst @@ -489,13 +489,13 @@ the same key could be invalidate with one function call:: use Symfony\Contracts\Cache\ItemInterface; $value0 = $pool->get('item_0', function (ItemInterface $item) { - $item->tag(['foo', 'bar']) + $item->tag(['foo', 'bar']); return 'debug'; }); $value1 = $pool->get('item_1', function (ItemInterface $item) { - $item->tag('foo') + $item->tag('foo'); return 'debug'; });