Skip to content

Commit

Permalink
Exclude WP_Error from FullyQualifiedExceptionsSniff (#22)
Browse files Browse the repository at this point in the history
`WP_Error` is not an exception.
  • Loading branch information
IanDelMar authored Aug 25, 2024
1 parent 932cb99 commit e10a2e1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion PSR12NeutronRuleset/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,13 @@
<property name="namespacesRequiredToUse" type="array"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions"/>
<rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions">
<properties>
<property name="ignoredNames" type="array">
<element value="WP_Error"/>
</property>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.MultipleUsesPerLine"/>
<rule ref="SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash"/>
<rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation"/>
Expand Down

0 comments on commit e10a2e1

Please sign in to comment.