Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ArrayAccess in AppendedArrayItemTypeRule #845

Closed
wants to merge 3 commits into from
Closed

Support ArrayAccess in AppendedArrayItemTypeRule #845

wants to merge 3 commits into from

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Dec 12, 2021

Closes phpstan/phpstan#6184

But I noticed too late that this is also covered by OffsetAccessValueAssignmentRule, so maybe #843 should be preferred when ready as it handles all offset assignments. I took a quick look but did not get far because it works quite differently and the problems are others

@herndlm herndlm marked this pull request as ready for review December 12, 2021 22:04
@herndlm
Copy link
Contributor Author

herndlm commented Dec 12, 2021

Hmm missed the failing integration test..

@herndlm herndlm marked this pull request as draft December 13, 2021 05:56
@herndlm
Copy link
Contributor Author

herndlm commented Dec 13, 2021

Solution here seems too hacky and messy around generics and iterables, therefore closing this PR. Anybody feel free to copy stuff from it if needed

@herndlm herndlm closed this Dec 13, 2021
@herndlm herndlm deleted the feature/support-array-access-in-appended-array-item-type-rule branch December 13, 2021 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant