function MethodDeclarationSniff::__construct
Same name in this branch
- 11.1.x vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/MethodDeclarationSniff.php \PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\MethodDeclarationSniff::__construct()
Constructor.
Overrides MethodDeclarationSniff::__construct
File
-
vendor/
drupal/ coder/ coder_sniffer/ Drupal/ Sniffs/ Methods/ MethodDeclarationSniff.php, line 33
Class
- MethodDeclarationSniff
- Checks that the method declaration is correct.
Namespace
Drupal\Sniffs\MethodsCode
public function __construct() {
AbstractScopeSniff::__construct([
T_CLASS,
T_INTERFACE,
T_TRAIT,
T_ENUM,
], [
T_FUNCTION,
]);
}