Previously, it was noticed that match_array raised an error when given a single, non-array argument as opposed to an array (which is the documented usage). An attempt was made to fix this; however, the conditional added to match_array only checked that the single argument was a string. This commit matches the original implementation of match_array by accepting any type of non-array, not just a string.
Previously, it was noticed that
match_array
raised an error when given a single, non-array argument as opposed to an array (which is the documented usage). An attempt was made to fix this; however, the conditional added tomatch_array
only checked that the single argument was a string. This commit matches the original implementation ofmatch_array
by accepting any type of non-array, not just a string.Also see: https://github.com/mcmire/super_diff/issues/97
Recreation of: https://github.com/mcmire/super_diff/pull/135 (hat tip: @wata727)