ReplaceNodeViewControllerRector

Replace new NodeViewController(...) with new EntityViewController(...) and drop the extra constructor arguments.

-new \Drupal\node\Controller\NodeViewController($entityTypeManager, $renderer, $currentUser, $entityRepository);
+new \Drupal\Core\Entity\Controller\EntityViewController($entityTypeManager, $renderer);

Configure your rector.php:

<?php

use DrupalRector\Drupal11\Rector\Deprecation\ReplaceNodeViewControllerRector;
use Rector\Config\RectorConfig;

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

Other rules in the drupal/core 11.4 set