Skip to content

Commit

Permalink
Include checks for duplicate array keys
Browse files Browse the repository at this point in the history
Discussed in MDL-79698.
  • Loading branch information
andrewnicols committed Oct 13, 2023
1 parent 5503396 commit 9343188
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions moodle/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,9 @@
<!-- Let's add the complete PHPCompatibility standard -->
<rule ref="PHPCompatibility" />

<!--
Detect duplicate array keys. This is useful for unit test providers in particular.
-->
<rule ref="Universal.Arrays.DuplicateArrayKey"/>

</ruleset>

0 comments on commit 9343188

Please sign in to comment.