Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
FILE: /home/thallesvf/Desktop/lando/d8-contrib/modules/ctools/src/Tests/Wizard/CToolsWizardTest.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
------------------------------------------------------------------------------------------------------------------------------------------
118 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
121 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
124 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
137 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
138 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
------------------------------------------------------------------------------------------------------------------------------------------
Proposed resolution
Replace function t() by method t() of StringTranslationTrait on CToolsWizardTest.php
Comment | File | Size | Author |
---|---|---|---|
#2 | ctools-Replace_function_t_by_method_t_of_StringTranslationTrait_on_CToolsWizardTest.php-3060030-2-D8.patch | 1.51 KB | thalles |
Comments
Comment #2
thallesFollow the patch!
Comment #3
thallesComment #4
joelpittetThanks @thalles, committed to the latest dev release