Find the best Rector rule to solve your problem. Searching through 1004 rules.
Found 5 rules, grouped by set: Clear
drupal/core 11.1
5 matches
Convert drupalGet() $headers from indexed colon-separated strings or null values to an associative array, as required by Drupal 11.1.0.
-$this->drupalGet('/path', [], ['X-Requested-With: XMLHttpRequest']);
-$this->drupalGet('', [], ['Accept-Language' => NULL]);
+$this->drupalGet('/path', [], ['X-Requested-With' => 'XMLHttpRequest']);
+$this->drupalGet('', [], ['Accept-Language' => '']);
Remove deprecated ModuleHandlerInterface::writeCache() calls and replace getHookInfo() with []
-$this->moduleHandler->writeCache();
$this->moduleHandler->resetImplementations();
Remove deprecated Updater::postInstall() and postInstallTasks() method overrides (drupal:11.1.0)
-class MyUpdater extends Updater { public function postInstallTasks() { return []; } }
+class MyUpdater extends Updater { }
Replace deprecated string $values in BlockContentTestBase::createBlockContentType() with an ['id' => ...] array
-$this->createBlockContentType('basic', TRUE);
+$this->createBlockContentType(['id' => 'basic'], TRUE);
Replace deprecated movePointerTo() with getSession()->getDriver()->mouseOver()
-$this->movePointerTo('#my-element');
+$this->getSession()->getDriver()->mouseOver('.//*[@id="my-element"]');