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

[NodeTypeResolver] Handle optional array shape on native function like with ArrayDimFetch #5062

Merged
merged 18 commits into from
Sep 21, 2023

Conversation

samsonasik
Copy link
Member

Fixes #5060

@samsonasik
Copy link
Member Author

Fixed 🎉 /cc @staabm


$type = $scope->getType($arrayDimFetch);

if (! $arrayDimFetch->dim instanceof String_) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fishy. We will surely find array shapes with int keys

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's need another fixture for next improvement 👍

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it to have faster feedback to test ;)

@samsonasik samsonasik merged commit c3d2ccf into main Sep 21, 2023
@samsonasik samsonasik deleted the fix-5060 branch September 21, 2023 17:20
@staabm
Copy link
Contributor

staabm commented Sep 21, 2023

Thx

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.

3 participants