Skip to content

Commit d576617

Browse files
committed
Add PSR12.Functions.ReturnTypeDeclaration
1 parent 361aef8 commit d576617

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

PSR2R/ruleset.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
<rule ref="PSR12.Namespaces.CompoundNamespaceDepth"/>
7272
<rule ref="PSR12.Operators.OperatorSpacing"/>
7373
<rule ref="PSR12.Functions.NullableTypeDeclaration"/>
74+
<rule ref="PSR12.Functions.ReturnTypeDeclaration"/>
7475

7576
<rule ref="Squiz.Functions.LowercaseFunctionKeywords"/>
7677
<rule ref="Squiz.WhiteSpace.ScopeKeywordSpacing"/>

docs/sniffs.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# PSR2R Code Sniffer
22

33

4-
The PSR2R standard contains 124 sniffs
4+
The PSR2R standard contains 126 sniffs
55

6-
Generic (20 sniffs)
6+
Generic (21 sniffs)
77
-------------------
88
- Generic.Arrays.DisallowLongArraySyntax
99
- Generic.CodeAnalysis.ForLoopShouldBeWhileLoop
@@ -18,6 +18,7 @@ Generic (20 sniffs)
1818
- Generic.Formatting.NoSpaceAfterCast
1919
- Generic.NamingConventions.UpperCaseConstantName
2020
- Generic.PHP.DeprecatedFunctions
21+
- Generic.PHP.DisallowAlternativePHPTags
2122
- Generic.PHP.DisallowShortOpenTag
2223
- Generic.PHP.ForbiddenFunctions
2324
- Generic.PHP.LowerCaseConstant
@@ -38,10 +39,11 @@ PSR1 (3 sniffs)
3839
- PSR1.Files.SideEffects
3940
- PSR1.Methods.CamelCapsMethodName
4041

41-
PSR12 (5 sniffs)
42+
PSR12 (6 sniffs)
4243
----------------
4344
- PSR12.Classes.ClassInstantiation
4445
- PSR12.Functions.NullableTypeDeclaration
46+
- PSR12.Functions.ReturnTypeDeclaration
4547
- PSR12.Keywords.ShortFormTypeKeywords
4648
- PSR12.Namespaces.CompoundNamespaceDepth
4749
- PSR12.Operators.OperatorSpacing

0 commit comments

Comments
 (0)