-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
Conversation
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
Fixed 🎉 /cc @staabm |
|
||
$type = $scope->getType($arrayDimFetch); | ||
|
||
if (! $arrayDimFetch->dim instanceof String_) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 👍
All checks have passed 🎉 @TomasVotruba I am merging it to have faster feedback to test ;) |
Thx |
Fixes #5060