I'm implementing an inline value provider in intelephense. When returning an InlineValueEvaluatableExpression for an array access expression with a variable for the key, the inline value is that of the array instead of the array element. Is it possible to resolve the element value here? If so, where in the code would I look if I was to attempt a PR?
<?php
$a = ['x', 'y', 'z'];
foreach ($a as $k => $v) {
echo $a;
echo $k;
echo $v;
echo $a[0];
echo $a[$k];
echo 1;
}
The problem seems similar to #1077 . I am running version 1.38.2.