[Config] Cached attribute changes are not detected #39988
Labels
Bug
Config
Help wanted
Issues and PRs which are looking for volunteers to complete them.
Status: Reviewed
Symfony version(s) affected: 5.2
Description
Changed attributes (e.g. for the SerializedName or Groups attributes) are not detected and the config cache is not renewed.
How to reproduce
You get a failing test with this patch:
Possible Solution
Consider the attributes while building the file hash.
Additional context
It seems like
ReflectionMethod::__toString()
does not include information about attributes. I am not sure if this is on purpose of if this is missing. (Also, ReflectionAttribute does not have a__toString()
method like the other reflection classes have).See https://3v4l.org/Ht9pi
Maybe this needs to be adjusted in PHP as well (not sure about that).
The text was updated successfully, but these errors were encountered: