Php-cs-fixer: Ternary to elvis fixer

Created on 31 Jan 2018  路  5Comments  路  Source: FriendsOfPHP/PHP-CS-Fixer

When the first and the second operands are the same:

-$a = $b ? $b : $c;
+$a = $b ?: $c;
kinfeature request

Most helpful comment

@keradus I'll try this one as my study of Tokens :nerd_face:

All 5 comments

@EvgenyOrekhov, hi, thanks for bringing up great idea !
this project is quite big and mature already, it's super hard to bring all requested features just by core team, could you please create a PR for this feature ?

@keradus Sorry, I don't have the time for it.

@keradus I'll try this one as my study of Tokens :nerd_face:

*done in #4741

Was this page helpful?
0 / 5 - 0 ratings