t() calls should be avoided in classes

Created on 24 April 2023, about 1 year ago
Updated 27 September 2023, 9 months ago

Problem/Motivation


FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/reroute_email/tests/src/Functional/RerouteEmailBrowserTestBase.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------
 144 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
------------------------------------------------------------------------------------------------------------------------------------------

Time: 276ms; Memory: 12MB
📌 Task
Status

Fixed

Version

2.2

Component

Code

Created by

🇮🇳India Rohit Rana

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024