Skip to content

Commit f8ea50b

Browse files
committed
Fix documentation
1 parent a73b83f commit f8ea50b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/type-hints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Sniff provides the following settings:
121121
* `enableStandaloneNullTrueFalseTypeHints`: enforces to transform `@return true`, `@return false` or `@return null` into native typehints. It's on by default if you're on PHP 8.2+.
122122
* `traversableTypeHints`: enforces which typehints must have specified contained type. E.g. if you set this to `\Doctrine\Common\Collections\Collection`, then `\Doctrine\Common\Collections\Collection` must always be supplied with the contained type: `\Doctrine\Common\Collections\Collection|Foo[]`.
123123

124-
This sniff can cause an error if you're overriding or implementing a parent method which does not have typehints. In such cases add `@phpcsSuppress SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint` annotation to the method to have this sniff skip it.
124+
You can add `@phpcsSuppress SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint` annotation to the method to skip the check.
125125

126126
#### SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing 🔧
127127

0 commit comments

Comments
 (0)