You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ReflectionProperty does not return the PHPDoc of a property if it contains an attribute with a Closure #20895
Thanks for the feedback.
I see it now, but in this case, how can we assign the doc to a property instead of the Closure? Assuming this is the order (DOC > Attributes) of things?
I mean, even libraries such as Symfony Serializer rely on it to determine the type of a property when it is not explicitly specified.
Activity
TimWolla commentedon Jan 10, 2026
The doc comment is incorrectly assigned to the Closure:
outputs:
zavarock commentedon Jan 10, 2026
Thanks for the feedback.
I see it now, but in this case, how can we assign the doc to a property instead of the Closure? Assuming this is the order (DOC > Attributes) of things?
I mean, even libraries such as Symfony Serializer rely on it to determine the type of a property when it is not explicitly specified.
TimWolla commentedon Jan 10, 2026
A proposed fix is in #20896.
zend_language_parser: Backup / restore doc comment when parsing attri…
zend_language_parser: Backup / restore doc comment when parsing attri…