8000 Unset OBJECT_TO_POPULATE in getCacheKey · symfony/symfony@bb99e1c · GitHub
[go: up one dir, main page]

Skip to content

Commit bb99e1c

Browse files
committed
Unset OBJECT_TO_POPULATE in getCacheKey
1 parent 5da141b commit bb99e1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ protected function createChildContext(array $parentContext, $attribute/*, string
400400
*/
401401
private function getCacheKey($format, array $context)
402402
{
403+
unset($context[self::OBJECT_TO_POPULATE]);
403404
unset($context['cache_key']); // avoid artificially different keys
404405
try {
405406
return md5($format.serialize([

0 commit comments

Comments
 (0)
0