Skip to content

Conversation

czosel
Copy link
Collaborator

@czosel czosel commented Jan 2, 2020

I noticed during the update of prettier/plugin-php that we shouldn't have removed the code block handling unary / retif in #455 😉
This reverts the code block and adds a test.

@czosel czosel requested a review from ichiriac January 2, 2020 21:07
@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 96.15% when pulling b3b2055 on czosel:fix-unary-retif into 407e4d4 on glayzzle:master.

Copy link
Collaborator

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

/cc @ichiriac

});

it("test unary / retif", function() {
shouldBeSame("$a = +(+$var ? 1 : 2)", "$a = +((+$var) ? 1 : 2)")
Copy link
Member

Choose a reason for hiding this comment

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

👍

@ichiriac ichiriac merged commit 23538c1 into glayzzle:master Jan 3, 2020
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.

4 participants