B
B
BonBon Slick2018-10-13 18:23:46
phpstorm
BonBon Slick, 2018-10-13 18:23:46

Dockblock generation without full classpath?

Tired of deleting the full path to files

* @param \Zend\Validator\Translator\TranslatorInterface                        $translator

And so to each dock block, it's hard to read something like that
/**
   * self constructor.
   *
   * @param \Zend\Validator\Translator\TranslatorInterface                        $translator
   * @param \Zend\Validator\Translator\TranslatorInterface                        $translator
   * @param \Zend\Validator\Translator\TranslatorInterface                        $translator
   * @param \Zend\Validator\Translator\TranslatorInterface                        $translator
   * @param \Zend\Validator\Translator\TranslatorInterface                        $translator
   * @param \Zend\Validator\Translator\TranslatorInterface                        $translator
   * @param \Zend\Validator\Translator\TranslatorInterface                        $translator
   * @param \Zend\Validator\Translator\TranslatorInterface                        $translator
   */
  public function __construct(

Easier
/**
   * self constructor.
   *
   * @param TranslatorInterface                        $translator
   * @param TranslatorInterface                        $translator
   * @param TranslatorInterface                        $translator
   * @param TranslatorInterface                        $translator
   * @param TranslatorInterface                        $translator
   */
  public function __construct(

or
public function test() : \App\Long\Path\To\File\Class {

Exclusion in the IDE settings is not found. Perhaps a plugin?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2018-10-13
@inoise

use use for that. PHP Storm has nothing to do with it. And read the documentation on namespace - how it is used and when what paths it requires

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question