Removes deprecated $settings['state_cache'] assignments. State caching is permanently enabled since drupal:11.0.0 and the setting has no effect
-$settings['state_cache'] = TRUE;
$settings['other_setting'] = TRUE;
Configure your rector.php:
<?php
use DrupalRector\Drupal11\Rector\Deprecation\RemoveStateCacheSettingRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
RemoveStateCacheSettingRector::class,
]);