As suggested in comment #15 on https://www.drupal.org/node/2858062, the use of $this->t() should be recommended instead of t().

Comments

manishmittal9 created an issue. See original summary.

klausi’s picture

Status: Active » Fixed

This is already implemented in the DrupalPractice.Objects.GlobalFunction sniff. Please test!

Status: Fixed » Closed (fixed)

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