Skip to content

Conversation

@thewilkybarkid
Copy link
Contributor

Rather an edge case!

@thewilkybarkid thewilkybarkid changed the title Cover short ternary UselessTernaryOperatorSniff Cover short ternaries in UselessTernaryOperatorSniff Mar 6, 2019
@thewilkybarkid
Copy link
Contributor Author

AppVeyor failure is unrelated.

@Majkl578
Copy link
Contributor

Majkl578 commented Mar 8, 2019

Can you provide some real-world use case for this? I'd be really interested in seeing one.

@thewilkybarkid
Copy link
Contributor Author

Heh, so would I! Just spotted it when adding a (rather unrealistic) test case so our CS (https://github.com/libero/php-coding-standard/pull/50/files#diff-abd230f3b7a1a6e0e56045b82f054108R9). Reasonably quick and should be harmless to add though.

@kukulich
Copy link
Contributor

kukulich commented Mar 8, 2019

@thewilkybarkid Please squash commits to one commit and name it in the same way as commits in master.Thank you.

@thewilkybarkid thewilkybarkid force-pushed the useless-short-ternary branch from e6d77a3 to 6b0c352 Compare March 8, 2019 09:30
@kukulich kukulich merged commit 3e961db into slevomat:master Mar 11, 2019
@kukulich
Copy link
Contributor

Thanks.

@thewilkybarkid thewilkybarkid deleted the useless-short-ternary branch March 11, 2019 15:47
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.

3 participants