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

[SOLID] Change if && to early return (more than two conditions) #4390

Merged

Conversation

dobryy
Copy link
Contributor

@dobryy dobryy commented Oct 10, 2020

Follow-up: #4344 (comment)
Related to: #4071

@dobryy dobryy force-pushed the solid-and-if-early-return-more-than-two-conditions branch from d5de71f to 27c9235 Compare October 10, 2020 21:03
@dobryy dobryy changed the title [SOLID] Change if && to early return (more than two conditions) WIP: [SOLID] Change if && to early return (more than two conditions) Oct 10, 2020
@dobryy dobryy force-pushed the solid-and-if-early-return-more-than-two-conditions branch from 4b09c3d to aaaabc9 Compare October 10, 2020 21:57
@dobryy
Copy link
Contributor Author

dobryy commented Oct 10, 2020

@TomasVotruba if the pipeline will be green it is ready for review.

@dobryy dobryy changed the title WIP: [SOLID] Change if && to early return (more than two conditions) [SOLID] Change if && to early return (more than two conditions) Oct 10, 2020
@dobryy dobryy force-pushed the solid-and-if-early-return-more-than-two-conditions branch from 0ee88dc to 195b350 Compare October 11, 2020 07:57
@dobryy
Copy link
Contributor Author

dobryy commented Oct 11, 2020

@TomasVotruba PHPStan issues were related to some new Simplify rule. I rebased on master once more time, now it should be fine.

@TomasVotruba TomasVotruba merged commit 874baec into master Oct 11, 2020
@TomasVotruba TomasVotruba deleted the solid-and-if-early-return-more-than-two-conditions branch October 11, 2020 09:43
@TomasVotruba
Copy link
Member

Thank you

TomasVotruba added a commit that referenced this pull request Jul 1, 2023
rectorphp/rector-src@2161084 [DeadCode] Skip non typed param numeric check on RecastingRemovalRector (#4390)
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.

None yet

2 participants