Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8568923

Browse files
eXtremenicolas-grekas
authored andcommitted
[Cache] Fixed undefined variable in ArrayTrait
1 parent d90dd8d commit 8568923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Cache/Traits/ArrayTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private function freeze($value, $key)
129129
} catch (\Exception $e) {
130130
$type = \is_object($value) ? \get_class($value) : \gettype($value);
131131
$message = sprintf('Failed to save key "{key}" of type %s: %s', $type, $e->getMessage());
132-
CacheItem::log($this->logger, $message, ['key' => substr($id, \strlen($this->namespace)), 'exception' => $e]);
132+
CacheItem::log($this->logger, $message, ['key' => $key, 'exception' => $e]);
133133

134134
return;
135135
}

0 commit comments

Comments
 (0)