diff --git a/docs/checkers_doc.md b/docs/checkers_doc.md index fea7b9d7..166416b1 100644 --- a/docs/checkers_doc.md +++ b/docs/checkers_doc.md @@ -4,7 +4,7 @@ | Total checks | Checks enabled by default | Disabled checks by default | Autofixable checks | | ------------ | ------------------------- | -------------------------- | ------------------ | -| 103 | 85 | 18 | 13 | +| 104 | 86 | 18 | 14 | ## Table of contents - Enabled by default @@ -59,6 +59,7 @@ - [`nestedTernary` checker](#nestedternary-checker) - [`newAbstract` checker](#newabstract-checker) - [`nonPublicInterfaceMember` checker](#nonpublicinterfacemember-checker) + - [`notExplicitNullableParam` checker (autofixable)](#notexplicitnullableparam-checker) - [`offBy1` checker (autofixable)](#offby1-checker) - [`oldStyleConstructor` checker](#oldstyleconstructor-checker) - [`paramClobber` checker](#paramclobber-checker) @@ -1176,6 +1177,26 @@ interface Iface {


+### `notExplicitNullableParam` checker + +> Auto fix available + +#### Description + +Report not nullable param can be null. + +#### Non-compliant code: +```php +function f(string $str = null); +``` + +#### Compliant code: +```php +function f(?string $str = null); +``` +


+ + ### `offBy1` checker > Auto fix available