[CodeQuality] Skip if else return on ExplicitReturnNullRector#5755
[CodeQuality] Skip if else return on ExplicitReturnNullRector#5755samsonasik merged 13 commits intomainfrom
Conversation
|
Fixed 🎉 |
|
Try catch seems can always return inside If https://getrector.com/demo/25fe6ca5-f447-4ada-83c7-6a9c8d4bf692 We may need to use existing |
|
I added another fixture in if else with try catch fixture 67e848e |
|
The logic for it should like in rector-src/rules/TypeDeclaration/TypeInferer/SilentVoidResolver.php Lines 66 to 78 in b4eb883 the solution is either make that detection there, with if else check addition, and utilize I will look more... |
|
implemented 🎉 , I moved the functionality to |
|
All checks have passed 🎉 @TomasVotruba I am merging it ;) |
|
Thank you 🥳 |
ref https://getrector.com/demo/5aece176-e316-4f8d-8d9c-69124edf6b6a