t() calls should be avoided in classes, use dependency injection and $this->t() instead.

FILE: ...areviewsh/pareview_temp/wordpress_migrate_ui/src/Form/AuthorForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------
 37 | WARNING | t() calls should be avoided in classes, use dependency
    |         | injection and $this->t() instead
--------------------------------------------------------------------------
FILE: ...areviewsh/pareview_temp/wordpress_migrate_ui/src/Form/ReviewForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------
 34 | WARNING | t() calls should be avoided in classes, use dependency
    |         | injection and $this->t() instead
 40 | WARNING | t() calls should be avoided in classes, use dependency
    |         | injection and $this->t() instead
--------------------------------------------------------------------------
CommentFileSizeAuthor
#2 3072109-2.patch2.15 KBvuil
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ilchovuchkov created an issue. See original summary.

vuil’s picture

FileSize
2.15 KB
vuil’s picture

Status: Active » Needs review

  • HongPong committed efd300d on 8.x-3.x authored by vuil
    Issue #3072109 by vuil: t() calls should be avoided in classes, use...
HongPong’s picture

Status: Needs review » Fixed

Great, thanks so much vuil! :)

vuil’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.