From d9cd7a3c5bd9c79bd6773893545e51bba3b785e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Tue, 30 Jan 2024 16:46:08 +0100 Subject: [PATCH] enh: Forbid yoda style comparison MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- src/Config.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Config.php b/src/Config.php index 0ff0a0c..f4cd71e 100644 --- a/src/Config.php +++ b/src/Config.php @@ -58,6 +58,7 @@ public function getRules() : array { 'visibility_required' => [ 'elements' => ['property', 'method', 'const'] ], + 'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false], ]; } }