File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 5252 </rule >
5353 <rule ref =" Generic.NamingConventions.ConstructorName" />
5454 <rule ref =" Generic.NamingConventions.InterfaceNameSuffix" />
55+ <rule ref =" Generic.NamingConventions.TraitNameSuffix" />
5556 <rule ref =" Generic.NamingConventions.UpperCaseConstantName" />
5657 <rule ref =" Generic.PHP.DeprecatedFunctions" />
5758 <rule ref =" Generic.PHP.DisallowShortOpenTag" >
Original file line number Diff line number Diff line change @@ -388,6 +388,10 @@ protected function getErrorList(string $testFile): array
388388 1 => 1 ,
389389 3 => 1 ,
390390 ];
391+ case 'TraitNameSuffix.inc ' :
392+ return [
393+ 6 => 1 ,
394+ ];
391395 case 'UnusedUseStatementUnitTest.inc ' :
392396 return [
393397 5 => 1 ,
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /**
4+ * Trait name must end with 'Trait'.
5+ */
6+ trait TraitNameSuffix {
7+
8+ }
You can’t perform that action at this time.
0 commit comments