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

[TypeDeclaration] Prevent uncaught exception in ReturnTypeFromReturnNewRector #6159

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jul 18, 2024

calling reflectionProvider->getClass(..) without a previous reflectionProvider->hasClass(..) call can throw.

fixes rectorphp/rector#8748

@staabm staabm marked this pull request as ready for review July 18, 2024 14:24
@samsonasik samsonasik merged commit a3f0b1f into rectorphp:main Jul 18, 2024
34 checks passed
@samsonasik
Copy link
Member

Thank you @staabm

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