The problem is quite simple
I have that kind of functions, with objects from differents classes
$object2=$objectA->fx('foo');
$array=$object2->fxBar();
echo $array[1];
and I would like to do that :
echo (( $objectA->fx('foo') )->fxBar() )[1];
I know that it works with other languages like java, by catings objects