From 19a6d4e601d57b0b27ecbbe797810721aab0058c Mon Sep 17 00:00:00 2001 From: Jan Nedbal Date: Wed, 21 Jun 2023 20:25:27 +0200 Subject: [PATCH] Readme: add rules title (#125) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7ea27ab..add3d3f 100644 --- a/README.md +++ b/README.md @@ -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