Skip to content

Commit 8be0908

Browse files
committed
Also check T_TRAIT
1 parent a5d3f14 commit 8be0908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeSniffer/Standards/Squiz/Sniffs/Scope/MethodScopeSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Squiz_Sniffs_Scope_MethodScopeSniff extends PHP_CodeSniffer_Standards_Abst
3838
*/
3939
public function __construct()
4040
{
41-
parent::__construct(array(T_CLASS, T_INTERFACE), array(T_FUNCTION));
41+
parent::__construct(array(T_CLASS, T_INTERFACE, T_TRAIT), array(T_FUNCTION));
4242

4343
}//end __construct()
4444

0 commit comments

Comments
 (0)