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
bug #59963 [TypeInfo] Fix @var tag reading for promoted properties (mtarld)
This PR was merged into the 7.2 branch.
Discussion
----------
[TypeInfo] Fix ``@var`` tag reading for promoted properties
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix#59959
| License | MIT
Read either ``@param`` and ``@var`` tags for promoted properties.
Commits
-------
3291bf3 [TypeInfo] Fix promoted property with ``@var`` tag
Copy file name to clipboardExpand all lines: src/Symfony/Component/TypeInfo/TypeResolver/PhpDocAwareReflectionTypeResolver.php
+25-23Lines changed: 25 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -64,36 +64,38 @@ public function resolve(mixed $subject, ?TypeContext $typeContext = null): Type
64
64
thrownewUnsupportedException(\sprintf('Expected subject to be a "ReflectionProperty", a "ReflectionParameter" or a "ReflectionFunctionAbstract", "%s" given.', get_debug_type($subject)), $subject);
0 commit comments