How to configure PhpStorm for visualizing available methods and attributes of an object variable while typing?
I remembered having seeing that adding the @var
annotations on the line above of the declared variable as
// @var \Drupal\Core\Entity\Plugin\DataType\EntityAdapter $entityAdapter $entityAdapter = $entityReference->getTarget();
permits it but I do not know what does it do and how to use it.
An example of autocompletion: annotating a local variable in php