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

Skip not natively typed property in AddParamTypeFromPropertyTypeRector #3421

Conversation

rene-bos
Copy link
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
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
2 participants