Skip to content

Commit

Permalink
Fixed undefined variable in ArrayTrait
Browse files Browse the repository at this point in the history
  • Loading branch information
eXtreme committed Jun 5, 2019
1 parent 93a385b commit 49a25e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Cache/Traits/ArrayTrait.php
Expand Up @@ -129,7 +129,7 @@ private function freeze($value, $key)
} catch (\Exception $e) {
$type = \is_object($value) ? \get_class($value) : \gettype($value);
$message = sprintf('Failed to save key "{key}" of type %s: %s', $type, $e->getMessage());
CacheItem::log($this->logger, $message, ['key' => substr($key, \strlen($this->namespace)), 'exception' => $e]);
CacheItem::log($this->logger, $message, ['key' => $key, 'exception' => $e]);

return;
}
Expand Down

0 comments on commit 49a25e5

Please sign in to comment.