Skip to content

Commit

Permalink
Functinoal test confuse me. Namespace included. Also add change recor…
Browse files Browse the repository at this point in the history
…d reference
  • Loading branch information
bbrala committed Dec 23, 2023
1 parent 781039b commit 17038a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/drupal-9/drupal-9.1-deprecations.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion fixtures/d9/rector_examples_updated/rector_examples.module
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Drupal\Component\Utility\Bytes;
function extension_paths() {
\Drupal::service('extension.list.module')->getPath('node');
\Drupal::service('extension.list.theme')->getPath('seven');
Expand All @@ -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");
}

0 comments on commit 17038a5

Please sign in to comment.