mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-29 19:37:55 +01:00
inline short condition
This commit is contained in:
parent
e40436b89c
commit
5c3212629c
@ -76,9 +76,7 @@ final class UnnecessaryTernaryExpressionRector extends AbstractRector
|
||||
$ifExpression = $ternaryExpression->if;
|
||||
$elseExpression = $ternaryExpression->else;
|
||||
|
||||
if (! $ifExpression instanceof ConstFetch
|
||||
|| ! $elseExpression instanceof ConstFetch
|
||||
) {
|
||||
if (! $ifExpression instanceof ConstFetch || ! $elseExpression instanceof ConstFetch) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user