Commit d8f11d9
Move template type bound check from VarTagTypeRuleHelper to TemplateTypeVariance
Instead of special-casing GenericObjectType in VarTagTypeRuleHelper,
handle the template type equivalence at the type system level: in the
invariant variance check, when the other type ($b) is a TemplateType
whose bound equals $a, consider them equivalent.
This approach uses the existing $acceptsContext infrastructure direction
rather than adding rule-level workarounds.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent df5ee10 commit d8f11d9
File tree
3 files changed
+4
-18
lines changed- src
- Rules/PhpDoc
- Type/Generic
3 files changed
+4
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
726 | 726 | | |
727 | 727 | | |
728 | 728 | | |
729 | | - | |
| 729 | + | |
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | 180 | | |
198 | 181 | | |
199 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
180 | 183 | | |
181 | 184 | | |
182 | 185 | | |
| |||
0 commit comments