Commit 6a2f58a
Handle multiple ReflectionAttribute subclasses in return type resolution
Instead of returning the first matching class name from the method's
return type, collect all matches and only use the result when there is
exactly one unambiguous match. When there are zero or multiple matching
ReflectionAttribute subclasses, fall back to the native ReflectionAttribute
class.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2e13af8 commit 6a2f58a
File tree
1 file changed
+6
-1
lines changed- src/Type/Php
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
| |||
0 commit comments