Skip to content

Commit

Permalink
Turn PHPCS error into warning
Browse files Browse the repository at this point in the history
It should not be raised in this case, because the methods who are "missing" docs are declared with `@inheritDoc`. See squizlabs/PHP_CodeSniffer#2770 (comment)
  • Loading branch information
XedinUnknown committed Mar 15, 2021
1 parent 83f48b5 commit ce0bfc6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions phpcs.xml.dist
Expand Up @@ -24,12 +24,12 @@
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
</rule>

<rule ref="Squiz.Commenting.FunctionComment">
<properties>
<property name="skipIfInheritdoc" value="true" />
</properties>
<rule ref="Squiz.Commenting.FunctionComment.MissingParamTag">
<type>warning</type>
</rule>

<rule ref="Squiz.Commenting.FunctionComment" />

<arg name="extensions" value="php"/>

<file>src</file>
Expand Down

0 comments on commit ce0bfc6

Please sign in to comment.