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

Found 2 rules:

Configurable

RenameMethodRector

Turns 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();
     }
 }