RemoveRedundantWithCallsRector

Removes redundant with helper calls

-with(new Object())->something();
+(new Object())->something();

Configure your rector.php:

<?php

use RectorLaravel\Rector\FuncCall\RemoveRedundantWithCallsRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        RemoveRedundantWithCallsRector::class,
    ]);