public function ExceptionTSniff::register in Coder 8.3.x
Same name and namespace in other branches
- 8.3 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\GeneralCode
public function register() {
return [
T_THROW,
];
}