MIR1209
MixedArrayAccess
Array access produced a value of type mixed.
Example
Section titled “Example”<?php/** @param mixed $a */ function f($a){ return $a['k']; }How to fix
Section titled “How to fix”Type the array, e.g. array<string, int>.
MIR1209
Array access produced a value of type mixed.
<?php/** @param mixed $a */ function f($a){ return $a['k']; }Type the array, e.g. array<string, int>.