Add `ParenthesizeNegatedInstanceofRector` by jeromegamez · Pull Request #7785 · rectorphp/rector-src

# rector.php
use Rector\Instanceof_\Rector\BooleanNot\ParenthesizeNegatedInstanceofRector;

RectorConfig::configure()
    ->withRules([
        ParenthesizeNegatedInstanceofRector::class // defaults to `add_parentheses`
    ])
	// or
    ->withConfiguredRule(ParenthesizeNegatedInstanceofRector::class, [)
        'mode' => ParenthesizeNegatedInstanceofRector::ADD_PARENTHESES, // `add_parentheses`
    ])
	// or
    ->withConfiguredRule(ParenthesizeNegatedInstanceofRector::class, [)
        'mode' => ParenthesizeNegatedInstanceofRector::REMOVE_PARENTHESES, // `remove_parentheses`
    ])
;