Skip to content

AssignmentVisitor: Fix analysis when assigning to properties with template types#5020

Merged
rlerdorf merged 1 commit intophan:v5from
MatmaRex:template-property-assign
Jul 11, 2025
Merged

AssignmentVisitor: Fix analysis when assigning to properties with template types#5020
rlerdorf merged 1 commit intophan:v5from
MatmaRex:template-property-assign

Conversation

@MatmaRex
Copy link
Copy Markdown
Contributor

We resolved the template type in $property_union_type, but not in $property itself, and $property was later passed to sub-methods that do further analysis.

@MatmaRex
Copy link
Copy Markdown
Contributor Author

Found when trying to make use of the generics improvements in a real project (MediaWiki). I hope I didn't cause too many other bugs :)

…plate types

We resolved the template type in $property_union_type, but not in
$property itself, and $property was later passed to sub-methods that
do further analysis.
@MatmaRex MatmaRex force-pushed the template-property-assign branch from fb1407c to d012062 Compare July 10, 2025 16:06
@MatmaRex MatmaRex mentioned this pull request Jul 11, 2025
@rlerdorf rlerdorf merged commit d86da77 into phan:v5 Jul 11, 2025
11 checks passed
@MatmaRex MatmaRex deleted the template-property-assign branch July 21, 2025 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants