diff --git a/tests/src/Rector/Deprecation/FunctionToServiceRector/config/configured_rule.php b/tests/src/Rector/Deprecation/FunctionToServiceRector/config/configured_rule.php index 7807be5d..984b6730 100644 --- a/tests/src/Rector/Deprecation/FunctionToServiceRector/config/configured_rule.php +++ b/tests/src/Rector/Deprecation/FunctionToServiceRector/config/configured_rule.php @@ -9,9 +9,10 @@ return static function (RectorConfig $rectorConfig): void { DeprecationBase::addClass(FunctionToServiceRector::class, $rectorConfig, false, [ - new FunctionToServiceConfiguration('render', 'renderer', 'render'), - new FunctionToServiceConfiguration('file_copy', 'file.repository', 'copy'), - new FunctionToServiceConfiguration('file_move', 'file.repository', 'move'), - new FunctionToServiceConfiguration('file_save_data', 'file.repository', 'writeData'), + new FunctionToServiceConfiguration('9.3.0', 'render', 'renderer', 'render'), + new FunctionToServiceConfiguration('8.0.0', 'file_copy', 'file.repository', 'copy'), + new FunctionToServiceConfiguration('9.3.0', 'file_move', 'file.repository', 'move'), + new FunctionToServiceConfiguration('9.3.0', 'file_save_data', 'file.repository', 'writeData'), + new FunctionToServiceConfiguration('10.1.0', 'drupal_theme_rebuild', 'theme.registry', 'reset'), ]); }; diff --git a/tests/src/Rector/Deprecation/FunctionToServiceRector/fixture/drupal_theme_rebuild.php.inc b/tests/src/Rector/Deprecation/FunctionToServiceRector/fixture/drupal_theme_rebuild.php.inc new file mode 100644 index 00000000..b3eb1fc3 --- /dev/null +++ b/tests/src/Rector/Deprecation/FunctionToServiceRector/fixture/drupal_theme_rebuild.php.inc @@ -0,0 +1,21 @@ + \Drupal::service('theme.registry')->reset(), fn() => drupal_theme_rebuild()); +} +