Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Dec 13, 2022

No description provided.

$exprVarType = $scope->getType($expr->var);
$dimType = $scope->getType($expr->dim);
$unsetType = $exprVarType->unsetOffset($dimType);
$exprVarNativeType = $scope->getType($expr->var);
Copy link
Contributor Author

@staabm staabm Dec 13, 2022

Choose a reason for hiding this comment

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

I was wondering since these lines are the same as a few lines above. maybe it should instead be getNativeType instead of deleting the lines?

I tried both variants, but since all these variants did not regress any tests I went with the faster one.

//cc @rajyan

Copy link
Contributor

Choose a reason for hiding this comment

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

This was intended to use native type, not sure why this happened… Thanks for pointing it out.
I’ll fix them with regression test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thx

@staabm staabm closed this Dec 13, 2022
@staabm staabm deleted the rm-redundant-get-scope branch December 13, 2022 14:21
@rajyan rajyan mentioned this pull request Dec 13, 2022
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