t() calls should be avoided in classes
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3370387. -->
Reported by: [arti_parmar](https://www.drupal.org/user/3700663)
>>>
<p>FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\aggregator\src\FeedViewBuilder.php<br>
------------------------------------------------------------------------------------------------------------------------------------------<br>
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES<br>
------------------------------------------------------------------------------------------------------------------------------------------<br>
145 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead<br>
153 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead<br>
------------------------------------------------------------------------------------------------------------------------------------------</p>
<p>FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\aggregator\tests\src\Functional\migrate_drupal_ui\MigrateUpgradeExecuteTestBase.php<br>
----------------------------------------------------------------------------------------------------------------------------------------------<br>
FOUND 1 ERROR AND 1 WARNING AFFECTING 1 LINES<br>
----------------------------------------------------------------------------------------------------------------------------------------------<br>
76 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead<br>
----------------------------------------------------------------------------------------------------------------------------------------------</p>
<p>FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\aggregator\tests\src\Kernel\FeedValidationTest.php<br>
-----------------------------------------------------------------------------------------------------------------------------------------<br>
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES<br>
-----------------------------------------------------------------------------------------------------------------------------------------<br>
58 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead<br>
60 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead<br>
-----------------------------------------------------------------------------------------------------------------------------------------</p>
issue