Skip to content

Commit

Permalink
rector skip BooleanInTernaryOperatorRule
Browse files Browse the repository at this point in the history
  • Loading branch information
CamillH committed Apr 10, 2024
1 parent 500bdbe commit 9fb1ec8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/RectorSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use Rector\Set\ValueObject\SetList;
use Rector\Strict\Rector\BooleanNot\BooleanInBooleanNotRuleFixerRector;
use Rector\Strict\Rector\If_\BooleanInIfConditionRuleFixerRector;
use Rector\Strict\Rector\Ternary\BooleanInTernaryOperatorRuleFixerRector;
use Rector\Strict\Rector\Ternary\DisallowedShortTernaryRuleFixerRector;
use Rector\TypeDeclaration\Rector\BooleanAnd\BinaryOpNullableToInstanceofRector;
use Ssch\TYPO3Rector\CodeQuality\General\RenameClassMapAliasRector;
Expand Down Expand Up @@ -188,6 +189,11 @@ public static function skip(): array
* TO: property_exists($this, 'x') && $this->x !== null;
*/
IssetOnPropertyObjectToPropertyExistsRector::class,
/**
* FROM: $ext ? $ext : '';
* TO: $ext !== '' && $ext !== '0' && $ext !== [] ? $ext : '';
*/
BooleanInTernaryOperatorRuleFixerRector::class,
]);
}

Expand Down

0 comments on commit 9fb1ec8

Please sign in to comment.