1.2.0
Added new sniff Moxio.PHP.DisallowArrayCombinersWithSingleArray
. This sniff disallows calls to functions that combine two or more with only a single array given as an argument. This applies to functions like array_merge(_recursive)
, array_replace(_recursive)
and all variants of array_diff
and array_intersect
. Such a call does not make sense, and is most likely a result of a misplaced comma or parenthesis.