File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88use PhpParser \Node \Stmt \If_ ;
99use Rector \Configuration \Deprecation \Contract \DeprecatedInterface ;
1010use Rector \Exception \ShouldNotHappenException ;
11- use Rector \Strict \ Rector \AbstractFalsyScalarRuleFixerRector ;
11+ use Rector \Rector \AbstractRector ;
1212use Symplify \RuleDocGenerator \ValueObject \CodeSample \ConfiguredCodeSample ;
1313use Symplify \RuleDocGenerator \ValueObject \RuleDefinition ;
1414
1515/**
1616 * @deprecated this rule is risky and requires manual checking
1717 */
18- final class BooleanInIfConditionRuleFixerRector extends AbstractFalsyScalarRuleFixerRector implements DeprecatedInterface
18+ final class BooleanInIfConditionRuleFixerRector extends AbstractRector implements DeprecatedInterface
1919{
20+ public const TREAT_AS_NON_EMPTY = 'treat_as_non_empty ' ;
21+
2022 public function getRuleDefinition (): RuleDefinition
2123 {
2224 $ errorMessage = \sprintf (
Original file line number Diff line number Diff line change 88use PhpParser \Node \Expr \Ternary ;
99use Rector \Configuration \Deprecation \Contract \DeprecatedInterface ;
1010use Rector \Exception \ShouldNotHappenException ;
11- use Rector \Strict \ Rector \AbstractFalsyScalarRuleFixerRector ;
11+ use Rector \Rector \AbstractRector ;
1212use Symplify \RuleDocGenerator \ValueObject \CodeSample \ConfiguredCodeSample ;
1313use Symplify \RuleDocGenerator \ValueObject \RuleDefinition ;
1414
1515/**
1616 * @deprecated as risky and requires manual checking
1717 */
18- final class BooleanInTernaryOperatorRuleFixerRector extends AbstractFalsyScalarRuleFixerRector implements DeprecatedInterface
18+ final class BooleanInTernaryOperatorRuleFixerRector extends AbstractRector implements DeprecatedInterface
1919{
20+ public const TREAT_AS_NON_EMPTY = 'treat_as_non_empty ' ;
21+
2022 public function getRuleDefinition (): RuleDefinition
2123 {
2224 $ errorMessage = \sprintf (
You can’t perform that action at this time.
0 commit comments