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

Support class-const-fetch in ReturnTypeFromStrictTypedCallRector #4520

Merged
merged 5 commits into from
Jul 16, 2023

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jul 15, 2023

No description provided.


final class SameTypedIntConstantReturns
{
const INT = 0;
Copy link
Member

Choose a reason for hiding this comment

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

how about add @var string here, is it still got int type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

works like expected, I would say: e653c9b

(since constants cannot get the value changed at runtime)

@samsonasik samsonasik merged commit cebcea0 into rectorphp:main Jul 16, 2023
41 checks passed
@samsonasik
Copy link
Member

Thank you @staabm

@staabm staabm deleted the const branch July 16, 2023 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants