RemoveBrowserUseHtml5ParserCallRector

Remove deprecated AbstractBrowser::useHtml5Parser() call, the native HTML5 parser is always used

-$client->useHtml5Parser(false);
-$client->useHtml5Parser(false)->request('GET', '/');
+$client->request('GET', '/');

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Symfony\Symfony80\Rector\MethodCall\RemoveBrowserUseHtml5ParserCallRector;

return RectorConfig::configure()
    ->withRules([
        RemoveBrowserUseHtml5ParserCallRector::class,
    ]);
PACKAGE:  symfony/browser-kit >=7.4