Skip to content

Support class-const-fetch in ReturnTypeFromStrictTypedCallRector#4520

Merged
samsonasik merged 5 commits intorectorphp:mainfrom
staabm:const
Jul 16, 2023
Merged

Support class-const-fetch in ReturnTypeFromStrictTypedCallRector#4520
samsonasik merged 5 commits intorectorphp:mainfrom
staabm:const

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented Jul 15, 2023

No description provided.

@staabm staabm requested a review from TomasVotruba as a code owner July 15, 2023 06:55

final class SameTypedIntConstantReturns
{
const INT = 0;
Copy link
Copy Markdown
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
Copy Markdown
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
@samsonasik
Copy link
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

2 participants