PHPStorm aid to autocomplete with Symfony2 etc

I have read today a ticket in which there are some struggling with PHPStorm even the 4 EAP version to autocomplete some FQCNs methods etc.
The trick has long been lived in the community and is doing just the following:

/**
 * @var $myProperty \Behat\Mink\Behat\Mink\Session
 **/
$myProperty->getCertainMethod();

It could be tedious and you could blame one or the other but it seems it was a convention. The idea of why the docblock is like that comes from a practice of just conveying the class information that the parameter is relying on. Until PHPStorm adopts this or you change completely the symfony2 standard then someone would keep on bearing this.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>