MIR1210
MixedArrayOffset
An array is indexed with an offset of type mixed.
Example
Section titled “Example”<?php/** @param mixed $k */ function f(array $a,$k){ return $a[$k]; }How to fix
Section titled “How to fix”Narrow the offset to int|string.