Skip to content

Commit 9343188

Browse files
committed
Include checks for duplicate array keys
Discussed in MDL-79698.
1 parent 5503396 commit 9343188

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

moodle/ruleset.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,9 @@
124124
<!-- Let's add the complete PHPCompatibility standard -->
125125
<rule ref="PHPCompatibility" />
126126

127+
<!--
128+
Detect duplicate array keys. This is useful for unit test providers in particular.
129+
-->
130+
<rule ref="Universal.Arrays.DuplicateArrayKey"/>
131+
127132
</ruleset>

0 commit comments

Comments
 (0)