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

[Php74] Remove TemplateType check on TypedPropertyRector #1826

Merged
merged 1 commit into from
Feb 17, 2022

Conversation

samsonasik
Copy link
Member

The TemplateType was introduced in rectorphp/rector#6378

The functionality then moved to TypedPropertyFromAssignsRector https://github.com/rectorphp/rector-src/blob/4cf6522e7703687d7673d316ec60c5f21ec37dec/rules-tests/TypeDeclaration/Rector/Property/TypedPropertyFromAssignsRector/Fixture/generic_object_type.php.inc

also, even the code exists, the $varType is no longer detected as UnionType for @template usage, so the code check has no effect so it can be removed.

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba it is ready for review.

@TomasVotruba TomasVotruba merged commit 0f3363c into main Feb 17, 2022
@TomasVotruba
Copy link
Member

Thanks

@TomasVotruba TomasVotruba deleted the remove-template-type-check-typed branch February 17, 2022 10:30
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