Skip to content

Commit

Permalink
Enforce useless return types
Browse files Browse the repository at this point in the history
  • Loading branch information
defunctl committed Aug 12, 2022
1 parent 4cea08e commit 9c60078
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/ModernTribe/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,8 @@
</properties>
</rule>
<!-- Checks for missing return typehints in case they can be declared natively -->
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"/>
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessAnnotation"/>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint" />

<!-- Require space around colon in return types -->
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing">
<properties>
Expand Down

0 comments on commit 9c60078

Please sign in to comment.