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

Found 2 rules:

Configurable

RenameMethodRector

Turn method names to new ones


KernelTestCaseContainerPropertyDeprecationRector

Simplify use of assertions in WebTestCase

 use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;

 class SomeTest extends KernelTestCase
 {
     protected function setUp(): void
     {
-        $container = self::$container;
+        $container = self::getContainer();
     }
 }