Concerning tooltips, it would be really nice if the array shape could be displayed in tooltips.
/**
* @param array{one: int, two: string, three: float, four: bool} $arr
*/
function test(array $arr) {
/** @trace $arr */
$arr;
}
Currently trace and tooltip yields array<bool|float|int|string>, which is kind of wrong and should probably be at least array<string, bool|float|int|string>. array<bool|float|int|string> should be something like [1, 2, 'yes', 3.3, false, true, 'anything'].
Showing the whole shape would be more correct and informative if at all possible.
Thanks!