Improve warning message in Set::toArray()
Array has a weird behaviour where string keys that can be represented
as ints are automagically converted to ints. From the manual:
A key may be either an integer or a string. If a key is the standard
representation of an integer, it will be interpreted as such (i.e.
"8" will be interpreted as 8, while "08" will be interpreted as "08").
Since Set can contain both ints and strings, we could have e.g.
$s = Set {1, '1'}
Calling $s->toArray() gives back then a 1-element array.
We were previously raising a warning in this case, but the warning didn't
specify what was the value of the "duplicate" key. Do so.
Reviewed By: @jdelong
Differential Revision:
D1096274