Find the best Rector rule to solve your problem. Searching through 675 rules.

Found 1 rule. That's the one:

ContainerGetNameToTypeInTestsRector

Change $container->get("some_name") in tests to bare type, useful since Symfony 3.4

 use PHPUnit\Framework\TestCase;

 final class SomeTest extends TestCase
 {
     public function run()
     {
         $container = $this->getContainer();
-        $someClass = $container->get('some_name');
+        $someClass = $container->get(SomeType::class);
     }
 }