Skip to content

improve generic type conversion#2534

Merged
TomasVotruba merged 1 commit intomasterfrom
generic
Dec 30, 2019
Merged

improve generic type conversion#2534
TomasVotruba merged 1 commit intomasterfrom
generic

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

@TomasVotruba TomasVotruba commented Dec 30, 2019

@enumag Apperently, only edge-case is generic array, that needs to be converted to array. It's treated as object without that, e.g. FQN by default \array and other problems.

Maybe there is more space for improvement. What do you think?

@TomasVotruba TomasVotruba requested a review from enumag December 30, 2019 19:11
@enumag
Copy link
Copy Markdown
Contributor

enumag commented Dec 30, 2019

Looks good! Just perhaps iterable might need special handling since it's not a class.

@TomasVotruba
Copy link
Copy Markdown
Member Author

@enumag Good point, updated + test included

@TomasVotruba TomasVotruba merged commit 24173b0 into master Dec 30, 2019
@TomasVotruba TomasVotruba deleted the generic branch December 30, 2019 23:16
@TomasVotruba TomasVotruba restored the generic branch January 2, 2020 15:50
@TomasVotruba TomasVotruba deleted the generic branch January 2, 2020 15:50
TomasVotruba added a commit that referenced this pull request Jun 19, 2022
rectorphp/rector-src@e22941a [PHP 7.4] Skip default expr type on property, if there is mixed assign (#2534)
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