I've modified the Refactor Document Method snippet to use the $MethodArgName$ macro. Whenever I apply this operation on a function which contains array parameters the square brackets are included in the argument name.
For example, the function
void foo(int x, int y[], int z)
would produce
x
y[]
z
The same problem happens if the brackets are not empty, i.e:
void foo(int x, int y[3], int z)
would produce
x
y[3]
z