TaxonomyVocabularyGetNamesDrupalStaticResetRector
Refactor drupal_static_reset('taxonomy_vocabulary_get_names') to entity storage reset cache
-drupal_static_reset('taxonomy_vocabulary_get_names');
+\Drupal::entityTypeManager()->getStorage('taxonomy_vocabulary')->resetCache();
Configure your rector.php:
<?php
use DrupalRector\Drupal9\Rector\Deprecation\TaxonomyVocabularyGetNamesDrupalStaticResetRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
TaxonomyVocabularyGetNamesDrupalStaticResetRector::class,
]);