Well, I basically wrote this bug and it took some time to find it:

I am not sure how often people mix an indexed array with a hashmap, but maybe it could be an option to show a warning?
Is this code style often used in PHP?
return [
"key" => $value,
$other,
$someMore,
"otherKey" => $otherValue,
$end,
];
If not -> maybe show a warning if these two styles are mixed?
Thank you for sharing @apfelbox !
Implemented!
Hi,
I didn't find this inspection on the inspection panel with this name and even though I activated almost all inspection, it doesn't seem to flag those cases.
Maybe broken?
Most helpful comment
Implemented!