Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidanio committed Aug 27, 2024
1 parent 03918eb commit a6ee3ed
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion docs/checkers_doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -1176,6 +1177,26 @@ interface Iface {
<p><br></p>


### `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);
```
<p><br></p>


### `offBy1` checker

> Auto fix available
Expand Down

0 comments on commit a6ee3ed

Please sign in to comment.