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

Found 7 rules, grouped by set: Clear

drupal/core 11.2 7 matches

Remove overrides of the deprecated HandlerBase::defineExtraOptions() which has no replacement (drupal:11.2.0)

-class MyFilter extends HandlerBase { public function defineExtraOptions(&$option) { $option['key'] = []; } }
+class MyFilter extends HandlerBase { }

Remove deprecated CacheTagChecksumCount and CacheTagIsValidCount entries from assertMetrics() calls (deprecated in drupal:11.2.0, removed in drupal:12.0.0, no replacement).

 $this->assertMetrics([
     'CacheGetCount' => 5,
-    'CacheTagChecksumCount' => 38,
-    'CacheTagIsValidCount' => 43,
     'CacheTagInvalidationCount' => 0,
 ], $performance_data);

Replace $block->setConfigurationValue('items_per_page', 'none') with NULL for Views block plugins.

-$block->setConfigurationValue('items_per_page', 'none');
+$block->setConfigurationValue('items_per_page', NULL);

Replace empty-string description with NULL in EntityFormMode::create() calls (deprecated in drupal:11.2.0).

 EntityFormMode::create([
   'id' => 'user.test',
   'label' => 'Test',
-  'description' => '',
+  'description' => NULL,
   'targetEntityType' => 'user',
 ]);

Removes deprecated ModuleHandlerInterface::addModule() and addProfile() calls, which are no-ops since drupal:11.2.0 and removed in drupal:12.0.0

-$moduleHandler->addModule('mymodule', 'modules/mymodule');
 $moduleHandler->load('mymodule');

Replace deprecated $root argument in Connection::createConnectionOptionsFromUrl() calls with NULL

-$connection->createConnectionOptionsFromUrl($url, $root);
+$connection->createConnectionOptionsFromUrl($url, NULL);

Rename #[StopProceduralHookScan] attribute to #[ProceduralHookScanStop] and update its use statement (drupal:11.2.0)

-use Drupal\Core\Hook\Attribute\StopProceduralHookScan;
+use Drupal\Core\Hook\Attribute\ProceduralHookScanStop;

-#[StopProceduralHookScan]
+#[ProceduralHookScanStop]
 function mymodule_helper(): void {}