You are here

public function ExceptionTSniff::register in Coder 8.3

Same name and namespace in other branches
  1. 8.3.x coder_sniffer/DrupalPractice/Sniffs/General/ExceptionTSniff.php \DrupalPractice\Sniffs\General\ExceptionTSniff::register()

Returns an array of tokens this test wants to listen for.

Return value

array<int|string>

File

coder_sniffer/DrupalPractice/Sniffs/General/ExceptionTSniff.php, line 32

Class

ExceptionTSniff
Checks that exceptions aren't translated.

Namespace

DrupalPractice\Sniffs\General

Code

public function register() {
  return [
    T_THROW,
  ];
}