Skip to content

Skip not natively typed property in AddParamTypeFromPropertyTypeRector#3421

Merged
TomasVotruba merged 3 commits intorectorphp:mainfrom
rene-bos:not-natively-typed-property-in-add-param-type-from-property-type-rector
Feb 27, 2023
Merged

Skip not natively typed property in AddParamTypeFromPropertyTypeRector#3421
TomasVotruba merged 3 commits intorectorphp:mainfrom
rene-bos:not-natively-typed-property-in-add-param-type-from-property-type-rector

Conversation

@rene-bos
Copy link
Copy Markdown
Contributor

In the AddParamTypeFromPropertyTypeRector the property type inference also used the PHPDoc types. This PR fixes this.

I also the same (regression) test fixture for the AddMethodCallBasedStrictParamTypeRector.

I'm wondering if we should replace NodeTypeResolver->getType() with getNativeType() on more places in the TypeDeclaration namespace.

@TomasVotruba
Copy link
Copy Markdown
Member

Thank you 🙂

@TomasVotruba TomasVotruba merged commit 3c34abb into rectorphp:main Feb 27, 2023
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