From 17038a57ea356a83cf3dbbf24ebdb405bfdb3ad9 Mon Sep 17 00:00:00 2001 From: bjorn Date: Sat, 23 Dec 2023 12:22:23 +0100 Subject: [PATCH] Functinoal test confuse me. Namespace included. Also add change record reference --- config/drupal-9/drupal-9.1-deprecations.php | 1 + fixtures/d9/rector_examples_updated/rector_examples.module | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/drupal-9/drupal-9.1-deprecations.php b/config/drupal-9/drupal-9.1-deprecations.php index fd8df5a8..8a6d1999 100644 --- a/config/drupal-9/drupal-9.1-deprecations.php +++ b/config/drupal-9/drupal-9.1-deprecations.php @@ -98,6 +98,7 @@ $rectorConfig->rule(GetAllOptionsRector::class); $rectorConfig->rule(UserPasswordRector::class); + // Change record: https://www.drupal.org/node/3162663 $rectorConfig->ruleWithConfiguration(RenameStaticMethodRector::class, [ new RenameStaticMethod( 'Drupal\Component\Utility\Bytes', diff --git a/fixtures/d9/rector_examples_updated/rector_examples.module b/fixtures/d9/rector_examples_updated/rector_examples.module index 068e6be1..dc068537 100644 --- a/fixtures/d9/rector_examples_updated/rector_examples.module +++ b/fixtures/d9/rector_examples_updated/rector_examples.module @@ -1,5 +1,6 @@ getPath('node'); \Drupal::service('extension.list.theme')->getPath('seven'); @@ -15,6 +16,6 @@ function rector_examples_with_render() { } function rector_utility_bytes_to_int() { - $int = \Drupal\Component\Utility\Bytes::toNumber("15"); + $int = Bytes::toNumber("15"); }