Skip to content

Commit

Permalink
Add the return type check to the PSR-12 standard
Browse files Browse the repository at this point in the history
  • Loading branch information
duncan3dc committed Oct 4, 2018
1 parent 01cefb2 commit e4f7600
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Standards/PSR12/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration"/>

<!-- When you have a return type declaration present there MUST be one space after the colon followed by the type declaration. The colon and declaration MUST be on the same line as the argument list closing parentheses with no spaces between the two characters. -->
<rule ref="Generic.Functions.ReturnTypeDeclaration"/>

<!-- In nullable type declarations there MUST NOT be a space between the question mark and the type. -->

Expand Down

0 comments on commit e4f7600

Please sign in to comment.