Skip to content

Commit

Permalink
enh: Forbid yoda style comparison
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Jan 30, 2024
1 parent c16b059 commit d9cd7a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function getRules() : array {
'visibility_required' => [
'elements' => ['property', 'method', 'const']
],
'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false],
];
}
}

0 comments on commit d9cd7a3

Please sign in to comment.