Skip to content

Fixed some issues for RemoveZeroAndOneBinaryRector#1702

Merged
TomasVotruba merged 2 commits intorectorphp:masterfrom
jeroensmit:remove-zero-and-one-binary-fix
Jul 6, 2019
Merged

Fixed some issues for RemoveZeroAndOneBinaryRector#1702
TomasVotruba merged 2 commits intorectorphp:masterfrom
jeroensmit:remove-zero-and-one-binary-fix

Conversation

@jeroensmit
Copy link
Copy Markdown
Contributor

Fixed issue where '1 / x' is considered to be equal to 'x'
Fixed issue where '($var + 1)' inside another expression is considered to be equal to '1'
Expanded unit test for ValueResolver

Fixed issue where '($var + 1)' inside another expression is considered to be equal to '1'
Expanded unit test for ValueResolver
Comment thread packages/DeadCode/src/Rector/Plus/RemoveZeroAndOneBinaryRector.php
@TomasVotruba TomasVotruba merged commit b8cb084 into rectorphp:master Jul 6, 2019
@TomasVotruba
Copy link
Copy Markdown
Member

Thank you 👍

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.

2 participants