Skip to content

Commit

Permalink
Readme: add rules title (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal committed Jun 21, 2023
1 parent 8ae4bbf commit 19a6d4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ parameters:
blacklist!: ['(unset)'] # force the blacklist to be only (unset)
```

## Rules:

### allowComparingOnlyComparableTypes
- Denies using comparison operators `>,<,<=,>=,<=>` over anything other than `int|string|float|DateTimeInterface`. Null is not allowed.
- Mixing different types in those operators is also forbidden, only exception is comparing floats with integers
Expand Down

0 comments on commit 19a6d4e

Please sign in to comment.