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

add regression test for ArrayAccess and move logic #1055

Closed
wants to merge 1 commit into from

Conversation

rajyan
Copy link
Contributor

@rajyan rajyan commented Mar 7, 2022

When I was working with #1054
I noticed that 0f64ca7 logic may be moved out of !(new ObjectType(ArrayAccess::class))->isSuperTypeOf($varType)->yes() block, because it is using $originalValueToWrite.

This PR moved the logic and added some regression tests for ArrayAccess.

@rajyan
Copy link
Contributor Author

rajyan commented Mar 7, 2022

I'm going to investigate a little more to understand this code.

@rajyan rajyan closed this Mar 10, 2022
@rajyan
Copy link
Contributor Author

rajyan commented Mar 10, 2022

I'll try it later.
Code for ArrayDimFetch was difficult to understand enough...

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