Skip to content

VarTagTypeRuleHelper: disallow widening list<int> to array<int>#2804

Closed
janedbal wants to merge 1 commit intophpstan:1.10.xfrom
janedbal:narrow-list-to-array
Closed

VarTagTypeRuleHelper: disallow widening list<int> to array<int>#2804
janedbal wants to merge 1 commit intophpstan:1.10.xfrom
janedbal:narrow-list-to-array

Conversation

@janedbal
Copy link
Contributor

@janedbal janedbal commented Dec 5, 2023

This looks intentional in this commit, but it is imo just wrong. No widening should be allowed.

@janedbal
Copy link
Contributor Author

janedbal commented Dec 5, 2023

Please see #2805, I believe that one supersedes this.

@ondrejmirtes
Copy link
Member

See #2805 (comment) and also the CI results that prove me right :)

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