RemoveFirewallDispatcherArgumentRector

Remove deprecated event dispatcher argument of Firewall constructor

 use Symfony\Component\Security\Http\Firewall;

-$firewall = new Firewall($map, $dispatcher);
+$firewall = new Firewall($map);

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Symfony\Symfony82\Rector\New_\RemoveFirewallDispatcherArgumentRector;

return RectorConfig::configure()
    ->withRules([
        RemoveFirewallDispatcherArgumentRector::class,
    ]);
PACKAGE:  symfony/security-http >=8.2

Other rules in the symfony/security-http set