summaryrefslogtreecommitdiff
path: root/vendor/symfony/cache/Adapter/ProxyAdapter.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/cache/Adapter/ProxyAdapter.php')
-rw-r--r--vendor/symfony/cache/Adapter/ProxyAdapter.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/symfony/cache/Adapter/ProxyAdapter.php b/vendor/symfony/cache/Adapter/ProxyAdapter.php
index 8340bdf034..cf51b90d8d 100644
--- a/vendor/symfony/cache/Adapter/ProxyAdapter.php
+++ b/vendor/symfony/cache/Adapter/ProxyAdapter.php
@@ -103,9 +103,9 @@ class ProxyAdapter implements AdapterInterface, CacheInterface, PruneableInterfa
return $this->doGet($this, $key, $callback, $beta, $metadata);
}
- return $this->pool->get($this->getId($key), function ($innerItem) use ($key, $callback) {
+ return $this->pool->get($this->getId($key), function ($innerItem, bool &$save) use ($key, $callback) {
$item = ($this->createCacheItem)($key, $innerItem);
- $item->set($value = $callback($item));
+ $item->set($value = $callback($item, $save));
($this->setInnerItem)($innerItem, (array) $item);
return $value;