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

Improved inference of inherited method calls (fixes issues when parent::toArray() calls in JSON resources were not working as expected with larger classes hierarchies) #635

Merged
merged 4 commits into from
Nov 24, 2024

Conversation

romalytvynenko
Copy link
Member

@romalytvynenko romalytvynenko commented Nov 24, 2024

This PR improves inference of inherited method calls. Now both parent::methodName() and $obj->methodName() return types get resolved as expected.

@romalytvynenko romalytvynenko force-pushed the feat/improved-static-method-calls-analysis branch from e05e053 to 2ca59d5 Compare November 24, 2024 11:26
@romalytvynenko romalytvynenko changed the title Feat/improved static method calls analysis Improved inference of inherited method calls Nov 24, 2024
@romalytvynenko romalytvynenko changed the title Improved inference of inherited method calls Improved inference of inherited method calls (fixes issue when parent::toArray() calls in JSON resources were not working as expected with larger classes hierarchies) Nov 24, 2024
@romalytvynenko romalytvynenko changed the title Improved inference of inherited method calls (fixes issue when parent::toArray() calls in JSON resources were not working as expected with larger classes hierarchies) Improved inference of inherited method calls (fixes issues when parent::toArray() calls in JSON resources were not working as expected with larger classes hierarchies) Nov 24, 2024
@romalytvynenko romalytvynenko merged commit 58ea1e7 into main Nov 24, 2024
@romalytvynenko romalytvynenko deleted the feat/improved-static-method-calls-analysis branch November 24, 2024 11:41
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.

1 participant