-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Serializer] Fix configuration of the cache key #36340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
981b57a
to
2875404
Compare
It's only an issue if the default context for the cache key is changed by a child class and if the constructor is called afterwards, doesn't it? |
src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
Outdated
Show resolved
Hide resolved
A test case would be nice if you can. |
@alanpoulain it's even the case if you just pass the keys to exclude as parameter of the constructor. |
e7e2aa3
to
116110a
Compare
Is this one still relevant? I see that the original issue has been closed as the problem has been fixed in PHP itself IIUC? /cc @dunglas @nicolas-grekas |
AFAIK it's still an issue. |
@dunglas Ok, can you rebase so that we can merge? |
116110a
to
3b034cb
Compare
Thank you @dunglas. |
Currently, a bug prevents to configure the context keys to exclude from the cache key computation. The value is always replaced in the constructor. This PR fixes the problem.