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

Simplify AlwaysStrictScalarExprAnalyzer #4935

Merged
merged 2 commits into from
Sep 7, 2023
Merged

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Sep 7, 2023

No description provided.

@@ -119,32 +112,4 @@ private function resolveTypeFromScalar(Scalar $scalar): Type|null
return null;
}

private function resolveNativeFuncCallType(FuncCall $funcCall, Scope $scope): Type
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this stuff is already done when we call into nodeTypeResolver->getNativeType()

staabm referenced this pull request Sep 7, 2023
…eFromStrictScalarReturnExprRector (#4934)

* [TypeDeclaration] Add non native function return support on ReturnTypeFromStrictScalarReturnExprRector

* implemented

* rename method

* Fix phpstan

* phpstan

* phpstan
@samsonasik samsonasik merged commit 2be5a4d into rectorphp:main Sep 7, 2023
38 checks passed
@samsonasik
Copy link
Member

Thank you @staabm

@staabm staabm deleted the simple2 branch September 7, 2023 12:50
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