Skip to content

Commit 7f08705

Browse files
committed
fixup! fixup! [depre] Deprecate DisallowedShortTernaryRuleFixerRector as risky and not practical
1 parent a1aa956 commit 7f08705

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

rules/Strict/Rector/Ternary/DisallowedShortTernaryRuleFixerRector.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ final class DisallowedShortTernaryRuleFixerRector extends AbstractRector impleme
2222
{
2323
public const TREAT_AS_NON_EMPTY = 'treat_as_non_empty';
2424

25-
private bool $hasChanged = false;
26-
2725
public function getRuleDefinition(): RuleDefinition
2826
{
2927
$errorMessage = sprintf(

src/Configuration/RectorConfigBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@ public function withPreparedSets(
760760
bool $naming = false,
761761
bool $instanceOf = false,
762762
bool $earlyReturn = false,
763+
// @deprecated
763764
bool $strictBooleans = false,
764765
bool $carbon = false,
765766
bool $rectorPreset = false,
@@ -780,7 +781,6 @@ public function withPreparedSets(
780781
SetList::NAMING => $naming,
781782
SetList::INSTANCEOF => $instanceOf,
782783
SetList::EARLY_RETURN => $earlyReturn,
783-
SetList::STRICT_BOOLEANS => $strictBooleans,
784784
SetList::CARBON => $carbon,
785785
SetList::RECTOR_PRESET => $rectorPreset,
786786
PHPUnitSetList::PHPUNIT_CODE_QUALITY => $phpunitCodeQuality,

0 commit comments

Comments
 (0)